Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

How to autofill lookup with form metadata attribute

(0) ShareShare
ReportReport
Posted on by

Hello,

I currently have an entity that has a lookup to another entity that is not the contact. The user will only ever have one record in the lookup so I just need the field to take their top record. Form metadata seem like the route to go but since this lookup isn't connect to the contact I'm having issues getting it set up. 

  • Community Power Platform Member Profile Picture
    on at
    Re: How to autofill lookup with form metadata attribute

    So 2 entities in question (both custom), Application and Bills. Both are part of a webform and a user fills out an Application before going to the Bills form. The Bills entity has a lookup to the Application entity to create a one(Application) to many (Bills). My goal is to have this field hidden and autofill to their application they just created.

    I've tried autofilling with a metadata attribute but I only get contact fields in the Prepopulate Fields and Set Value On Save sections which after more research is their functionality.

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: How to autofill lookup with form metadata attribute

    Hi

     

    if there is only one record in your lookup entity, I am assuming you already know the GUID of the record

    you can use Entity Form Metadata with the "Set Value on Save" feature, and just add the record GUID in there

    another option would be having a Workflow to the record create/update, so you can populate the lookup with your record

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • v-siky-msft Profile Picture
    on at
    Re: How to autofill lookup with form metadata attribute

    Hi @Anonymous ,

     

    Could you please elaborate on your issue?

    Lookup to which entity?

    What does the top record mean?

    What does it have to do with Contact entity?

     

    Sik

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35