Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Entity Id must be specified for Update in MS CRM 2011 Post-plugin

$
0
0

Hi All,

I am getting the error 'Entity Id must be specified for Update" while updating the account record from Post-plug of the account, the below is the code.

if (context.PostEntityImages["account"] is Entity)

{

Entity PostEntity = (Entity)context.PostEntityImages["account"];

Guid AccountRecordID = (Guid)PostEntity["accountid"];

Entity account = new Entity("account"); account.Attributes.Add("accountid", AccountRecordID);

account.Attributes.Add("new_sign", AccountRecordID.ToString());

service.Update(account);

}

I am not getting what went wrong. please advice.

Thanks in advance,

srikanth



Viewing all articles
Browse latest Browse all 8223

Trending Articles



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