cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tacklers2
Level: Powered On

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

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Gatwick
Level: Powered On

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

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!

View solution in original post

8 REPLIES 8
tacklers2
Level: Powered On

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

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. 

 

Community Support Team
Community Support Team

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

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
tacklers2
Level: Powered On

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

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
Level: Powered On

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

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

tacklers2
Level: Powered On

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

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

Power Apps Staff dileeps
Power Apps Staff

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

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.

Highlighted
Power Apps Staff dileeps
Power Apps Staff

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

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"

 
 
Gatwick
Level: Powered On

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

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!

View solution in original post

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (3,973)