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 / Two Portal User Attrib...
Power Pages
Answered

Two Portal User Attribute filter. Is it possible?

(0) ShareShare
ReportReport
Posted on by 75

Hi, so I have this:

ThareLyn_0-1620730804055.png

But I also need this one:

ThareLyn_1-1620730873812.png


Just to cut this in short I need to put two value in filter(Portal user attribute) which is externalcontacts and internalcontacts.
I tried to search in the web and play with this

ThareLyn_2-1620731002094.png

But I cant find a way to do it, is it possible guys? two value for filter? If yes how? Thank you.

Categories:
I have the same question (0)
  • ThareLyn Profile Picture
    75 on at

    If not possible any recommendation for work around?

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @ThareLyn ,

    do you want to filter a specific view or do you want a kind of authorization?

    In the latter case, i usually use a custom entity (may be a relation fits also) in order to set up a relation between the contact and the entity, which is to be authorized. I then make an entity permission on that entity on contact level and another one as a parent-child using the newly created antity as a parent.

     

    This new entity is then filled by a flow, plugin, whatever fits which can have arbitrary rules to create the entries.


    Hope this points in the right direction,

      Christian

  • ThareLyn Profile Picture
    75 on at

    I need filter a specific view.

    So the filter I am using now is only showing records that has external_contact field matched with the name of the current logged in user. Almost same as security roles in crm, when in user level, you can only see your own records.

    But the requirement that I need to fulfill is to show all the records that has external_contact field or internal_contact field matched to the current logged in user.

    For example:
    RecordName | ext_contact | int_contact
    Record1         | contact1     | contact2
    Record2         | contact2     | contact3
    Record3         | contact3     | contact1


    Let say contact1 is currently logged in, with my current filter, the records that will show up is Record1 only, but the requirements should show Record1 and Record3 because Contact1 is external_contact for Record1 and he is also a internal_contact for Record3, so he should be able to view both records.

    Entity permission or table permission only limit the right of the user(Create,Read,Update,Delete) so I think I can't use entity permission for this one.

     

  • Verified answer
    Fubar Profile Picture
    8,352 Super User 2025 Season 2 on at

    This may not work for your specific situation depending on how the the Entity in question is being used elsewhere.

    Setup 2 Entity/Table Permissions, (scope) Access Type =  Contact,  1 permission use the relationship to ext_contact and the other permission the relationship to int_contact.  Then assign both permissions to the Web Role for the user.

     

    Another possibility which might work is in your views set an OR condition for (ext_contact = a contact record or int_contact = a contact record).  There is a feature that is not well documented where when a Contact lookup is in a Views condition and set to a contact record the Portal interprets that contact record as being the Current Portal user (even if it is different Contact record)

     

    (for both of the above you would not set the related filter you tried earlier)

  • ThareLyn Profile Picture
    75 on at

    @Fubar The second solution you said works like a magic. Thank you very much

  • ThareLyn Profile Picture
    75 on at

     

     

     

     



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
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard