Skip to content Skip to sidebar Skip to footer

Call Action Using Process.js - Crm

I have made custom workflow activity, registered it with Plugin Registration Tool and now i want to execute it using Action. Action wont have input/output parameters. Unique name i

Solution 1:

Value mentioned in your code should be declared as EntityReference. Please refer below code for same

Process.callAction("mag_Retrieve",
    [{
        key: "Target",
        type: Process.Type.EntityReference,
        value: newProcess.EntityReference("account", Xrm.Page.data.entity.getId())
    },
    {
        key: "ColumnSet",
        type: Process.Type.String,
        value: "name, statuscode"
    }],
    function (params) {
        // Success
    },
    function (e, t) {
        // Error
    });

Rest looks good

Post a Comment for "Call Action Using Process.js - Crm"