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.


SetStateMscrmRecord(1, 2, 3, 4)

Function Properties

1stringRequiredGUID of the record to set state and status for
2stringRequiredName of Dynamics CRM entity
3stringRequiredState to set, such as Active or Inactive
4stringRequiredStatus to set, such as 0 or 1