Call Actions from Workfrom RRS feed

  • Question

  • Hello guys,

    Is there any way to call actions from workflow. i found something on below link

    "https://technet.microsoft.com/en-us/library/dn949331.aspx#workflow" But i didnt find any "Add Step" to add actions in workflow.

    Kindly advice on this.

    vikas gupta

    Tuesday, November 24, 2015 8:49 AM

All replies

  • Hello,

    Have you already created and published an action that is related to workflow's or dialog's parent entity?

    Dynamics CRM MVP
    My blog

    Tuesday, November 24, 2015 8:54 AM
  • Hi,

    May be you can check whether child actions can be created. If yes, you can call the action from the workflow but I am not sure about this approach. Need to check it.

    or Else, you can create a custom workflow and write the code to call actions in it. Add the step to call custom workflow in the system workflow. Check the below link for calling actions using C# code.



    My blog

    Thursday, November 26, 2015 9:10 PM
  • Which version of CRM you are using? You can call the actions through workflow in CRM 2015. It has been introduced in CRM 2015 update 1.

    If you are using CRM 2013, you can create workflow activity that will call the action.

    OrganizationRequest orgReq = new OrganizationRequest("new_EnquiryCreateProject");
    orgReq["parameter"] = "If any parameter specify"; // You can have parameter of diffrenet type.. This is for string type.
    orgReq["Target"] = new EntityReference("Entity Name", "GUID of record");
    OrganizationResponse orgResponse = service.Execute(orgReq);

    • Proposed as answer by HIMBAPModerator Saturday, November 28, 2015 11:15 AM
    Friday, November 27, 2015 6:31 PM