SetStateMscrmRecord
This function sets state and status of the indicated record and provides -1 as the status value for the default status of the state. Returns no value. Some entities, including Opportunity, require special CRM requests to change their state. This function will not work for those entities.
Syntax
SetStateMscrmRecord(1, 2, 3, 4)
Function Properties
Ordinal | Type | Description | |
---|---|---|---|
1 | string | Required | GUID of the record to set state and status for |
2 | string | Required | Name of Dynamics CRM entity |
3 | string | Required | State to set, such as Active or Inactive |
4 | string | Required | Status to set, such as 0 or 1 |