0

我们在 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);
}
4

0 回答 0