MobileCRM.UI.EntityForm.reactivateEntity - Resconet/JSBridge GitHub Wiki
Reactivates inactive entity and reloads the form.
Arguments
Argument | Type | Description |
---|---|---|
statuscode | Number | Activation status code. |
This example demonstrate how to reactivate inactive entity and reloads the form.
MobileCRM.UI.EntityForm.requestObject(function (entityForm) {
/// <param name='entityForm' type='MobileCRM.UI.EntityForm'/>
if (entityForm.entity.properties.statecode == 1)
// check whether entity is inactive
entityForm.reactivateEntity(new Number(1)); // contact status code.
}, MobileCRM.bridge.alert, null);