Hi,
I need code to reopen or reactivate the closed leads using web api,similar to Reactivate lead button.
Hi,
I need code to reopen or reactivate the closed leads using web api,similar to Reactivate lead button.
Hi,
//set statecode to 0 aka open var data ={"statecode": 0} var leadId = "8F4FA496-3FF2-E311-9864-A45D36FC5F1C"; // update the record Xrm.WebApi.updateRecord("lead", leadId, data).then( function success(result) { console.log("Lead updated"); // perform operations on record update }, function (error) { console.log(error.message); // handle error conditions } );
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal...
289,995
Super User
Martin Dráb
227,174
Super User
nmaenpaa
101,148