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 select current ...
Power Pages
Answered

How to select current signed in 'Contact' by default in a custom field in CDS

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

I have created an entity and a custom field belonging to that entity which is a lookup to a 'Contact' entity in CDS. I added this custom field to the model-driven form which is used to create a record by a logged in customer (or contact) in the Power apps portal. 

I want this custom field to be auto-populated with the contact name by default when a customer creates a record.

How can we do this? 

(See attached image) 

 

Thank you.

 
Capture.PNG
Categories:
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Please take a look at the entity form metadata documentation: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/configure-web-form-metadata#set-value-on-save


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

    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.

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @ShawnPowerApps ,

    Do you want to auto-populate the LookUp field with current sign in contact in your PowerApps Portal Entity Form?

     

    The user @MS5 has faced similar needs with you, please check my response within the following thread:

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/Populate-a-field-when-editing-entity-through-edit-form/m-p/505407#M1009

     

    Please also check the following blog for more details:

    https://community.dynamics.com/365/f/dynamics-365-general-forum/307149/portals---populate-a-contact-lookup-field-with-the-currently-logged-in-contact-on-an-entity-form

     

    I think the "Entity Form Metadata" option of your Entity Form in PowerApps Portal could achieve your needs. Please take a try with the following workaround:

    1. Go to your Portal Management.

    2. Go to Entity Forms menu, find your specific Entity Form (where your LookUp field hosts on) and open it. Switch to "Additional Settings" tab, scroll down and look for a section labelled, Associate Current Portal User on Insert, configure it as below:

    10.JPG

    3. Switch to "Entity Form Metadata" tab, click "New Entity Form Metadata" button.

    7.JPG

    4. Configure the "Entity Form Metadata" as below:

    8.JPG

    14.JPG

    5. Go to your Portal Editor, then click "Sync Configuration" button to make these changed you made in your Portal Management take effect, then click "Browse Website" button.

    Best regards,

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 18 Super User 2026 Season 2

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#3
CU08101843-0 Profile Picture

CU08101843-0 4

Last 30 days Overall leaderboard