Search This Blog

Wednesday, September 9, 2015

Updating other related entity using xrmsvctoolkit in crm 2013

 XrmSvcToolkit.updateRecord({

    //Entity we are updating
    entityName: "wse_timesheet",

    //Entity ID, taken from above
    id: ID,
    
    //Attribute, but Schema name not name of entity
    entity: {new_OpportunityRevenue:  { value: 2, type: "Money" }},
    
    async: false,

    successCallback: function (result) {

    },

    errorCallback: function (error) {

        alert("There was an error when updating the contact record");

    }

});

No comments:

Post a Comment