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 Apps / sorting using agent's ...
Power Apps
Unanswered

sorting using agent's emails

(0) ShareShare
ReportReport
Posted on by 4

I created an app where a supervisor can send push notifications to his/her associates. The issue is I set it up manually. So if a new associate comes in to that team, I will have to manually update the info:

 

The sharepoint List looks similar  to this:

 

Supervisor1ColumnNameSupervisor2ColumnName
messagemessage

 

The user app section displaying the message has the following code where in this example users email 1,2 and 3 are agents under Supervisor1:

If(
User().Email="users email 1",Distinct(ListName,Supervisor1ColumnName).Result,
User().Email="users email 2",Distinct(ListName,Supervisor1ColumnName).Result,

User().Email="users email 3",Distinct(ListName,Supervisor1ColumnName).Result

);

 

Any ideas on how to reduce the code entry per user? Instead of "User().Email="users email 1",Distinct(ListName,Supervisor1ColumnName).Result," is it possible to use a different factor that encloses all agents under any supervisor regardless if an agent leaves that team or a new agent comes in?

I apologize if with the info provide might be hard to grasp the main idea. Please ask clarifying questions if necessary   TY

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @jdavila8091 

     

    I believe we can have 2 Sharepoints List

     

    List 1. Messages

    Message     Supervisor(Email)

     

    List 2: Agents Under Supervisor

    Agent(Email)     Supervisor(Email)

     

    In this case, We can easily control the data and UI. It will be easy to filter the list as well.

     

    Note: We can have column type Person Instead of email (Text)

     


    Thanks,
    Stalin - Learn To Illuminate

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard