Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

The entity is read-only and the 'EntityState' property cannot be modified. Use the context to update the entity instead.

$
0
0

Hi, 

I am trying to update multiple records by using ExecuteMultipleRequest.

But when I try to change the EntityState, its throwing an error saying "The entity is read-only and the 'EntityState' property cannot be modified. Use the context to update the entity instead."

entity.EntityState = EntityState.Changed;

I know it can be updated by using context.UpdateObject but I want to use ExecuteMultipleRequest so that I can update multiple records in one go. 

Can anyone please suggest me any way to make EntityState readable property?

Thanks


Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>