Twilio solution for sending SMS to customer contact in the Field Service module is not working as expected. The SMS needs to be sent to the customer contact with some message to notify the customer about the activities performed after the work order status changes.
But the SMS is not sent successfully. After investigation, came to know that the workflow activity for SMS generation is failing with an exception as follows:
Sync workflow failed with error message - Unhandled Exception: Microsoft.Crm.Workflow.Services.InvalidCustomActivityExecutionException: Unexpected exception from plug-in (Execute): Microsoft.Dynamics.TwilioIntegration.TwilioWFA.TwilioSMSGenerationActivity: System.InvalidOperationException: Invalid Operation
at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.ExecuteWorkflowUsingInvoker(Activity workflow, ICommonWorkflowContext context)
at Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowActivityHost.StartWorkflow(WorkflowActivationData activationData, ICommonWorkflowContext context)
, error code - -2147220891
Has anyone faced such a problem while integrating Twilio with MS Dynamics 365 CRM? If yes, what was the problem or what could be the problem. Any suggestion would be appreciated. Thanks.
*This post is locked for comments