简体   繁体   中英

Dynamics CRM - Invoke Action in Workflow

The page Invoke custom action from a workflow or dialog on Microsoft's site shows it's possible to call an Action as a step in a Workflow, but I cannot figure out how. It's not on the Add Step dropdown no matter what I try. Yet they have this image showing that an "Action" step is possible. How?

工作流程操作步骤

You need to create a custom workflow activity to call the action from the workflow. Here's an example of how you can do

OrganizationRequest req = new OrganizationRequest("new_ActionName");
req["ParameterName"] = "string parameter";
req["Target"] = new EntityReference("new_entityofaction", idOfEntity);

//execute the request
OrganizationResponse response = service.Execute(req);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM