Answered by:
Update isproductoverridden field in Quote Detail using OrganizationService in CRM 2015

Question
-
Hi Experts,
For one of the requirements we need to update the isproductoverriden field through code.
However we are not able to do so.
Entity quoteDetail = new Entity("quotedetail");
quoteDetail.Id = new Guid("EAAC2A62-DBD6-E511-810D-3863BB353ED0");
quoteDetail.Attributes["isproductoverridden"] = true;
orgService.Update(quoteDetail);
Any pointers \ guidance.
Thanks,
Nishant Rana
http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm
Friday, February 19, 2016 3:00 PM
Answers
-
Yes Nishant,
I rechecked EntityMetadata file from SDK. This attribute is valid for Create but not for Update.
Dynamics CRM MVP
Read My blog
Subscribe for one of my courses- Marked as answer by Nishant RanaMVP Monday, February 22, 2016 6:19 AM
Friday, February 19, 2016 3:29 PMModerator
All replies
-
Friday, February 19, 2016 3:14 PMModerator
-
Hi Andrii,
It didn't give any error, but the field also didn't update.
Thanks,
Nishant Rana
http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm
Friday, February 19, 2016 3:20 PM -
It seems like the field might be locked for update.
http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm
Friday, February 19, 2016 3:21 PM -
Yes Nishant,
I rechecked EntityMetadata file from SDK. This attribute is valid for Create but not for Update.
Dynamics CRM MVP
Read My blog
Subscribe for one of my courses- Marked as answer by Nishant RanaMVP Monday, February 22, 2016 6:19 AM
Friday, February 19, 2016 3:29 PMModerator -
Thanks Andrii for this information and help.
http://nishantrana.wordpress.com https://twitter.com/#!/nishantranacrm
Friday, February 19, 2016 3:34 PM