Hi,
I am running into an issue in a common plug-in that i created for Opportunity and Lead (Plugin registered on Create step). I need to read the parentcontactid value in Lead and Opportunity create logic.
After registering the plug-in Lead plug-in works fine but the opportunity plug-in is failing with "parentcontactid doesn't exist for opportunity". I have the contact lookup on both Lead and opportunity form and also on Process Flow section. Below line works fine for Lead but its failing opportunity. Am i doing any thing wrong? I checked all the name and relationship looks fine but failing with the error for opportunity plug-in
Guid contactid = ((EntityReference)entity.Attributes["parentcontactid"]).Id;
*This post is locked for comments