Microsoft Dynamics CRM uses many special fields for special purpose. In order to update those fields generally uses SOAP Messages.
- For Example, Every entity in CRM has a state code and status code fields which represents status of Records.
- To update these status fields generally uses the SetStateRequest message.
- Another Example is Ownerid field. All entities will have owner field that are setup as a user-owned entity. To update ownerid field generally uses the AssignRequest message.
- In a data migration/integration project, it is very common that you have to make three service calls to make an update to one CRM record i.e;
- Update all regular fields of the CRM Record.
- Assign the owner of record using AssignRequest.
- Update status of record Using SetStateRequest.
The following snippet shows the typical code pattern that you would use when you need to update/create a CRM record.
Now no longer have to make special service calls to update those fields, you can put all special fields in the same property and use one service call to update the CRM record.The following is the code that you can use for the same purpose as above if you are on CRM Online 2015 Update 1.
Compare the both above two code snippets that actually do the same thing.
Here am using CRM online 2015 Update 1 Code snippet I find the changes in CRM Record.
As per the above screenshot the owner field and status of record are updated without using any special messages.
