Guys,
I have been enjoying working with Portal. Two silly things which I can't believe are not there or may be I am missing them:
I have a user who logs in through an entry in the contact as local login (through the registration process) and submit a contact form that I created using an new entity, entity form and view.
The issue is when he submits, I always see the Created by as System. Do I need to change the owner in the contact to someone else?
Also, I don't know how to filter the view to show the records where created by = Logged In User
Please help as this urgent.
the main point of the post is that you can select the options to associate current user, the JavaScript part is more for the IP Address, which I don't think you are interested
this recent video by @nhayduk might be easier for you to follow: https://www.youtube.com/watch?v=R_l_AXBJjxo
here he is using the Entity Form metadata instead of the "Associate current user" option
------------
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.
OK. For capturing the created by in the feedback entry, I used a similar approach to what the article says in terms of IP address:
So I used jQuery to update a field labeled "Posted by" on the feedback form with the value of the logged in user top right corner which is the First Name and Last Name in the Contacts Entity "John Smith".
The First and Last Name on the Portal Profile when the user logs are required so they can not be left blank.
Ok will check these out. Thanks for the quick turn around Oliver.
Hi
to filter records by the logged user you need to create an entity permission, and enable your entity list / entity form for entity permission, please refer to this link: https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/assign-entity-permissions
in regards the Created By/Modified By, those are OOB attributes that relates to a User or Team in the system, so you can't really have the contact record there (remember that a Portal user is a contact)
this blog post help you to create custom attributes and associate with the logged in user: https://www.inogic.com/blog/2018/09/identify-the-source-of-records-created-from-microsoft-portal-in-dynamics-365/
------------
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.
Lucas001
60
Super User 2025 Season 1
Fubar
55
Super User 2025 Season 1
surya narayanan
35