Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Created by Shows System and Want to Filter by Logged In User

(0) ShareShare
ReportReport
Posted on by

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.

 

 

  • oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Created by Shows System and Want to Filter by Logged In User

    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.

  • Community Power Platform Member Profile Picture
    on at
    Re: Created by Shows System and Want to Filter by Logged In User

    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.

     

    $(document).ready(function(){
    var uName=$(".username").html();
    $("#cr174_PostedBy").val(uName);
    $("#cr174_PostedBy").hide();
    });
     
    The only issue with that, is that I may have two people with the same name. How would I know what posted what? I wanted to link the Post to something Unique like the E-mail but the Email is not displayed on the Feedback form?
  • Community Power Platform Member Profile Picture
    on at
    Re: Created by Shows System and Want to Filter by Logged In User

    Ok will check these out. Thanks for the quick turn around Oliver. 

  • Verified answer
    oliver.rodrigues Profile Picture
    9,342 Most Valuable Professional on at
    Re: Created by Shows System and Want to Filter by Logged In User

    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.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35