Announcements
We are looking for Arabic User Guides/Manuals for Microsoft Dynamics RMS
*This post is locked for comments
Hi,
I am Trying to get and set the lookup field using the Plugins, but i am getting the error. Can you please look at the below code and correct me if i am wrong.
Entity Account = (Entity)context.InputParameters["Target"];
EntityReference ContactLookup = Account.GetAttributeValue<EntityReference>("new_contactlookup");
var LookupId = ContactLookup.Id;
var logicalName = ContactLookup.LogicalName;
Entity Contact = new Entity("contact");
Contact["cr04d_accountlookup"] = new EntityReference(logicalName, LookupId);
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,782 Super User 2024 Season 2
Martin Dráb 229,067 Most Valuable Professional
nmaenpaa 101,150