You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Can I bubble up a specific message as to why
44
-
Current.Logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: No API key has been configurated for the 'Save Contact to HubSpot' the form {FormName} ({FormId})",Workflow.Name,e.Form.Name,e.Form.Id);
Current.Logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: Missing Hubspot field mappings for workflow for the form {FormName} ({FormId})",Workflow.Name,e.Form.Name,e.Form.Id);
40
+
_logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: Missing Hubspot field mappings for workflow for the form {FormName} ({FormId})",Workflow.Name,e.Form.Name,e.Form.Id);
53
41
returnWorkflowExecutionStatus.NotConfigured;
54
-
}
55
-
56
-
// Map data from the workflow setting Hubspot fields
57
-
// From the form field values submitted for this form submission
Current.Logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: The field mapping with Id, {FieldMappingId}, did not match any record fields. This is probably caused by the record field being marked as sensitive and the workflow has been set not to include sensitive data",Workflow.Name,mapping.FormField);
75
-
}
76
42
}
77
43
78
-
// Serialise dynamic JObject to a string for StringContent to POST to URL
Current.Logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: Error submitting data to Hubspot for the form {FormName} ({FormId})",Workflow.Name,e.Form.Name,e.Form.Id);
92
-
returnWorkflowExecutionStatus.Failed;
47
+
caseCommandResult.NotConfigured:
48
+
_logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: Could not complete contact request for {FormName} ({FormId}) as the workflow is not correctly configured.",Workflow.Name,e.Form.Name,e.Form.Id);
49
+
returnWorkflowExecutionStatus.NotConfigured;
50
+
caseCommandResult.Failed:
51
+
_logger.Warn<HubspotWorkflow>("Workflow {WorkflowName}: Failed for {FormName} ({FormId}).",Workflow.Name,e.Form.Name,e.Form.Id);
0 commit comments