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 / Associate current port...
Power Pages
Unanswered

Associate current portal user on insert option not available on entity edit screen.

(0) ShareShare
ReportReport
Posted on by 43

I have the contact entity on an entity form and want to populate the field with the logged in user.

 

The documentation refers to the 'record source type' field which I am not seeing. See screenshots. Its' driving me mad!

 

Thanks, Richard

 

Categories:
I have the same question (0)
  • tacklers2 Profile Picture
    43 on at

    I did make some progress. Partly because the 'additional settings' page is blank BUT you can page down and see more options. Duuh.

    Here we go I thought six hours ago but have since tried every option possible including deleting and recreating the entity form, trying every other option and reading the help text four times from top to bottom, even printing it off.

     

    A recent config screen shot is attached but still nothing come through automatically populated with the contact. This should be so simple. I've configured the field in the form every different way I can. It appears as a dropdown and can be selected but I don't even know whether this should happen if I want to populate it, should it be on the form? if I do manually click a contact that happily comes back into the entity but this is not the experience desired. 

     

  • v-xida-msft Profile Picture
    on at

    Hi @tacklers2 ,

    Based on the issue that you mentioned, I think you have some misunderstanding with "Record Resource Type" property within Entity Form in Portal.

     

    The "Record Resource Type" property is only visible when the Mode property set to "Edit" or "Read Only" as below:

    5.JPG

     

    If you want to configure the "Associate Current Portal User on Insert" when the Mode property is set to "Insert", please consider switch to the "Additional Settings" tab, then you could configure it there:

    6.JPG

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

  • tacklers2 Profile Picture
    43 on at

    Hi Kris thanks for the advice which I tried with a few variations but cannot get it to work. (Note not sure why your screenshot shows 'entity form metadata' column heading twice?) 1. I deleted all my metadata entry records and set the General tab with edit mode as you suggest but no contact details appeared. 2. I changed the additional settings and tried as well but nothing happened. 3. I want the contact to be populated automatically so don't want the column and drop down choice appearing for the user, how should I hide it or is it confusing the situation. 4. Currently on the 'Entity Reference' tab with 'Set entity reference on save' as YES the Entity Logical name = contact with a rop down of Contact(contact) Relationship Name cre5d_Worker_Contact_Contact drop down Contact(cre5d_Worker_Contact_Contact) Target Lookup Attribute Logical Name cre5d_contact dropdown Contact(cre5d_contact) Populate lookup field ticked and unticked runs. 'Entity Reference Source' 'Reference Entity Source Type' 'Record Associated to Current Portal User' Record Source Relationship Name Contact_customer_contacts dropdown Company Name(Contact_customer_contacts) - I cannot find this documented anywhere, does it help or do any harm? Do you know if there is a demo entity form already prepopulated on the CDM that I could refer to to see how it should work? Your screen shots are very helpful but only show part of the picture. I guess that setting up a one field entity with link to a contact on a form on putting it on an entity form would be a quick way to demo how it works or do you know where I could see it?

  • tacklers2 Profile Picture
    43 on at

    Further particulars, an excel output of the entity form  metadata, not much there.

  • tacklers2 Profile Picture
    43 on at

    A collection of the current settings, is there anything obviously wrong?

  • rulesrchanged1 Profile Picture
    on at

    Do u want to display it on UI as well prefilled or just save that field when the record is saved. This is actually an option which is available in entity form metadata.

  • rulesrchanged1 Profile Picture
    on at

    These would be the steps

    a) Go to your existing  Entity form

    b) Create New Entity form metadata 

    c) In entity form metadata, select type as attribute

    d) You will see two options in the bottom saying "Prepopulate on form" and "prepopulate on save"

     
     
  • Verified answer
    tacklers Profile Picture
    150 on at
    Thanks for the previous help which pointed me in the right direction.
     
    I carefully reread the documentation and worked it out. Screen shots attached. A user registers then can select an entity form to submit info, the entity has a relationship with contacts. The inserted record carries the relationship.
     
    The user can then further update their contact record. When logged in these settings retrieve the existing contact.
    General setting. Entity name = Contact, Form name = contact, tab Name Details_Tab, Mode EDIT, 'Current portal user', your website
    Entity Reference. Set..on save YES, Entity logical name = Contact, relationshop name contact_customer_details, Entity Reference Source 'Record Associated to Current User'
    cont. Record source relationship name contact_customer_details.
    I was so pleased when it started working!
  • ward042091 Profile Picture
    3 on at

    I am having the same issue, but it is still not working for me. What am I doing wrong?

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
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard