web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / How to autofill lookup...
Power Pages
Unanswered

How to autofill lookup with form metadata attribute

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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. 

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    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

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    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.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 56

#2
Valantis Profile Picture

Valantis 28

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard