This is my code for mapping fields. How do I map lookup field(salesorderdetailname)?
This is my code for mapping fields. How do I map lookup field(salesorderdetailname)?
Hello,
So to populate lookup you will need to 3 values which are as follows. For below example you can see I have lookup field on the quick create form and its logical name is = "ownerid"
1. Get GUID of the record which you want to populate. This is the unique ID associated with every CRM record.
2. owneridtype is Logical name of the lookup entity, for me it is systemuser .that is user entity.
// Set lookup column formParameters["ownerid"] = "8cc419d7-c5cd-ec11-a7b5-6045bd002bf6"; // ID of the user. formParameters["owneridtype"] = "systemuser"; // Table name.
Thank you,
Amit Katariya
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... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156