Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Map lookup field

Posted on by 105

This is my code for mapping fields. How do I map lookup field(salesorderdetailname)? IMG_2D00_705895796e1f0d5cc24fb977c93f8c9a_2D00_V.jpg

  • Suggested answer
    Amit Katariya007 Profile Picture
    Amit Katariya007 8,525 Super User 2024 Season 1 on at
    RE: Map lookup field

    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"

    pastedimage1653233669484v1.png

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans