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 / Filter Users Departmen...
Power Apps
Answered

Filter Users Department from O365 Group

(0) ShareShare
ReportReport
Posted on by 599

Hi,

I have a Table like this,

Sender NameReceiver NameMessage
DhineshSureshThanks for your co operation
SureshDhineshTesting

 

Now i want to know a Hoe filter a Sender department from O365 group ,

Filter(SPList,SenderName=First(ThisItem.Details).Department)

This is am using .. But i cant get sender dpartment from 0365 group.

 

How to do this?

 

Thanks,

Dhinesh

Categories:
  • CU16040718-0 Profile Picture
    on at

    Where do you have the below expression in your app right now (which control and property)?

    Filter(SPList,SenderName=First(ThisItem.Details).Department)

     

    Can you clarify your question a bit more and maybe provide some screenshots?

     

    _______________________________________________________________________________________________________________________
    Did this post solve your problem? Please click Accept as Solution so that others may find it more quickly.
    If you liked my response, please give it a Thumbs Up.
    Do you want to hear more from me? Visit my blog Marble's Power Corner.

  • AsanKani Profile Picture
    710 on at

    You can try lookup like below... I think it will be help you. 

    LookUp(Office365Users.SearchUser(), SPList.SenderName=DisplayName,Department)

    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

  • Dhinesh28R Profile Picture
    599 on at

    HI @fugixi  @AsanKani ,
    Thanks for your Valuable reply man. but am getting directly O365 department man with following formula.

    Office365Users.UserProfile(ThisItem.SenderName).Department

     

    Thanks,

    Dhinesh

  • Verified answer
    AsanKani Profile Picture
    710 on at

    You are welcome.. You need to give not a sender name.. In UserProfile need to ID... See below coding and Syntax 

     

    Office365Users.UserProfile("abc@def.com").Department

     

     

    Syntax : Office365Users.UserProfile(Id).Department/else

    AsanKani_1-1614001911710.png

     

    Did this post solve your problem? Please click Accept as Solution so that others may find it more quickly.
    If you liked my response, please give it a Thumbs Up.

  • Dhinesh28R Profile Picture
    599 on at

    @AsanKani ,

    Thanks man.

  • AsanKani Profile Picture
    710 on at

    You are welcome

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 Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard