Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Suggested answer

Use power automate to populate a look up field with a text field value

Posted on by 15

I have a custom entity that has an N:1 relationship with the Contacts entity.  The custom entity captured data from a user through a web form.  

I want to use power automate to update a look field on the custom entity which is linked to the contact entity.  I have a unique identifying number on the custom entity which is also on the contact entity. 

The look-up field will populate when the unique id is entered into the look-up field manually and I have also got it to work using power automate but only when I specify the GUID for the contact record and custom entity record. 

How can I get power automate to populate the look-up field on the custom entity with the data that is entered in the custom entity text field when the record is originally created. 

  pastedimage1642007112214v1.png

  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Use power automate to populate a look up field with a text field value

    Hi ahilisa,

    If you want to fetch data from some custom entity based on some filter, you have to add a step to get that particular record from the custom entity. Once you get the record, set the fields value from the fetched record.

    Hope this helps!!

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,962 Moderator on at
    RE: Use power automate to populate a look up field with a text field value

    Hi,

    You will need to use List Rows to query contact table based on unique id value then map the lookup field on custom entity. Please see below post which is querying User record based on fullname, you will need to do same for contact -

    community.dynamics.com/.../update-a-row-in-power-automate-with-name-rather-than-value

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • ahilisa Profile Picture
    ahilisa 15 on at
    RE: Use power automate to populate a look up field with a text field value

    Hi Steve,

    I have updated the flow as you suggested and I am getting this error, any suggestions?

    pastedimage1642071226201v1.png

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Use power automate to populate a look up field with a text field value

    Hi ahilisa,

    The value of  Herdowner lookup field should be something like this: contacts(4fbf3c8c-4269-ec11-8943-00224809dce9). The 4fbf3c8c-4269-ec11-8943-00224809dce9 is GUID of the contact.

    In your case, if the dynamic content(Flock/Herd Nu...) is the GUID of the contact, you could use this expression: concat('contacts(', Flock/Herd Nu..., ')').

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans