-
Notifications
You must be signed in to change notification settings - Fork 26
MobileCRM.UI.EntityForm.reactivateEntity
rescocrm edited this page Aug 2, 2024
·
10 revisions
Reactivates inactive entity and reloads the form.
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);