Reputation: 793
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?
Upvotes: 0
Views: 1756
Reputation: 1888
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);
Upvotes: 1