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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Populate a user lookup...
Power Pages
Unanswered

Populate a user lookup field with the currently logged in user on an Entity Form

(0) ShareShare
ReportReport
Posted on by 17

Hi,

 

I have tried to associate the current user with an insert basic form without success. I have a custom table with a lookup field to the 'User' table.

 

I have tried 'Associate Current Portal User on Insert' and 'Associated Table Reference' and 'Metadata Prepopulate' and 'Metadata Save Value On Save' individually and a combination of these without success.

 

I get the impression from the options I get and from reading posts from people with similar issues, that these options are targeted at the 'Contacts' table and not the 'User' table.

 

The closest I achieved was using  'Associated Table Reference' and hiding the Lookup field in the form. This saved the record without the user name, even though its a required field?

 

On submit of the form I either get 'The form could not be submitted for the following reasons: Staff List is a required field'(if the field is visible) or 'The requested record was not found' (if the field id hidden)

 

Please Help

Categories:
I have the same question (0)
  • ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hi @USSJona 

     

    Two key things to understand here 

    1. Associate Current portal user on insert 

    2. Entity form metadata- Populate field link to Step 1

    Please have a look at the below thread. Hope  it helps 

     

    https://powerusers.microsoft.com/t5/Power-Apps-Portals/How-to-select-current-signed-in-Contact-by-default-in-a-custom/td-p/572954 

     


    Hope it helps. 
    ------------

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

  • USSJona Profile Picture
    17 on at

    Hi Ragavanrajan,

     

    Thanks for your reply, I have seen those post before. I have tried the suggestions in the posts without success. I notice these posts and others all relate to the 'Contacts' table, I'm using the 'User' table.

     

    I have a custom table (SAC HW Request), it has a lookup field linked the 'User' table (HWR Staff List).

     

    The attached screenshots show the setup with 'Associate Current Portal User on Insert' and Metadata, I've tried both options 'Prepopulate' and 'Set Value On Save' with the same result. The errors are shown in screenshots with 'HWR Staff List' hidden or not.

     

    The Metadata Prepopulate screenshot shows my only 'User' option that I can select, I think this is where the error is coming from.

     

    Where am I going wrong ?Form GeneralForm GeneralForm Additional SettingsForm Additional SettingsMetadata AttributeMetadata AttributeMetadata PrepopulateMetadata PrepopulateForm with Staff ListForm with Staff ListForm Staff List hiddenForm Staff List hidden

     

  • USSJona Profile Picture
    17 on at

    Hi All,

     

    Can anybody help with the above please ?

     

    Many thanks,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard