我们在Laravel 5中拥有一个应用程序,该应用程序通过PHP-CRM-Toolkit(https://github.com/AlexaCRM/php-crm-toolkit/)与Dynamics 365集成。
我想在Dynamics 365中调用一个命名的工作流,但是找不到在包中使用的必需函数。任何帮助将不胜感激。
我在.NET中有类似的代码,但我希望在给定的程序包中使用它的版本。
try
{
// Create an ExecuteWorkflow request.
ExecuteWorkflowRequest request = new ExecuteWorkflowRequest();
//Assign the ID of the workflow you want to execute to the request.
request.WorkflowId = new Guid("xxxxxx-xxx-xxx-xxxx-xxxxxx");
//Assign the ID of the entity to execute the workflow on to the request.
request.EntityId = accountGUID;
// Execute the workflow.
ExecuteWorkflowResponse response = (ExecuteWorkflowResponse)service.Execute(request);
}