Custom Action Execution

var customAction_0 = new COSA.Request.CustomAction('scnsoft_testcustomaction0',
    new COSA.EntityReference('contact', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'),
    {
        argument0: new COSA.XrmBoolean(false),
        argument1: new COSA.EntityReference('account', 'YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY'),
        argument2: new COSA.XrmString('Some TEST COSA task subject')
    }
);

//action execution
customAction_0.execute(function ( resp ) {
    //working with a response
});

Last edited Dec 28, 2015 at 2:37 PM by sciencesoft, version 1