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 / Adding current users '...
Power Pages
Answered

Adding current users 'contactid' to multistep form

(0) ShareShare
ReportReport
Posted on by 71

I am trying to prepopulate a multistepform field with the current user contact.

The value of the multistep form 1 is prepoulated with the current logged in users 'contactid' and the users name shows up in the form. The column in the dataverse table that is prepopulated is a lookup column related to the 'users' table. When I try to submit the data to the table an unknown error occurs.

Probaply it has something to do with permissions but I can't figure it out.

Power_Person_3-1700055128279.png

Power_Person_0-1700054961113.png

Power_Person_1-1700054990737.pngPower_Person_2-1700055070865.png

 

 

Categories:
  • Lucas001 Profile Picture
    2,595 Super User 2026 Season 1 on at

    Hi @Power_Person,

     

    you will need to also populate the value.

    Have a look at that tutorial on how to populate a lookup field.

    https://www.youtube.com/watch?v=8WSSUIkKs2c



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

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • Power_Person Profile Picture
    71 on at

    Thank you for the advice.
    I do not really understand this solutions.
    I added the custom java script to my form step but it doesn't change anything.

    Power_Person_0-1700136254584.png

     

    Can you explain to me what I need to do?
    Thank you very much!

  • Power_Person Profile Picture
    71 on at

    Sorry, but the link did not help me.
    I am still facing the same problem.
    Somebody else can help me with this problem?

  • Fubar Profile Picture
    17 Super User 2026 Season 1 on at

    a) If you need the logged in portal user then I would use Metadata on the form Step to prepopulate and to save

    b) you could try enabling the Diagnostic Logging and then see if additional details are logged about the error

    https://learn.microsoft.com/en-us/power-pages/admin/view-portal-error-log

  • Verified answer
    Power_Person Profile Picture
    71 on at

    I found the problem. Everything was configured correctly on the power page site but I used the wrong lookup table.
    For the currently logged in user I had to use the "Contact" table and not the "User" Table. With the "User" table connected my name was appearing in the form but it got the error on submit. With the "Contact" table I was able to submit the form correctly with prepopulating the metadata like shown in my screenshots. Using custom JavaScript was not necessary.

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 25 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 20

#3
DianePana Profile Picture

DianePana 9

Last 30 days Overall leaderboard