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 / Lookup from SharePoint...
Power Apps
Answered

Lookup from SharePoint Lists

(0) ShareShare
ReportReport
Posted on by 99

I need to get the lookup Domain value from SharePoint list for that respective user ().email

In below table Owners and Escalation Focals have multiple Domains to look for. How to get their respective domains in default selected value of a Combobox when the user is from Owners or Escalation column? 

 

Please help. 

 

DomainsOwnersEscalation Focals
Shared ServicesSuraj DevasthaliSuresh Sam
DevelopmentSaji JohnSuresh Sam
ProductionDeepak ShahSuresh Sam
BAU ServicesDeepak ShahSuresh Sam
InfraGajender KumarSri Ram
MicroservicesSuraj DevasthaliSri Ram
CloudOpsRoman PatraSri Ram
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    Hi @Surajde ,

    Something like

    Filter(
     SPListName,
     'Escalation Focals' = User().FullName ||
     Owners = User().FullName
    ).Domains

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Surajde Profile Picture
    99 on at

    Thanks WarrenBelz for quick response. It is working when user().email has only 1 Domain. If he has Multiple domains then its not appearing in comboxbox.
    When added Deepak's email then formula not working.  Please help. 

     

    ProductionDeepak ShahSuresh Sam
    BAU ServicesDeepak ShahSuresh Sam
  • Verified answer
    WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    @Surajde ,

    The Filter I provided should show all matching (User's name is in Domains or 'Escalation Focals') in the Items of the Combo Box. DefaultSelectedItems are another matter - you did not tell me the Items of the Combo Box, but on the assumption that the field displayed is Domains, try

    ForAll(
     Filter(
     SPListName,
     'Escalation Focals' = User().FullName ||
     Owners = User().FullName
     ) As aDom,
     {Domains: aDom.Domains}
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • Surajde Profile Picture
    99 on at

    I wonder formula only works for Owners or Escalations Focals who has only 1 domain. But whomsoever has more than 1 domain is not getting selected in defaultselecteditems of ComboBox 

     

    Surajde_1-1679779131675.png

     

    Rami has two domains then ComboxBox  is not showing any selected values. 

    Surajde_2-1679779210215.png

     

     

     

  • WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    @Surajde 

    You are stretching the limits of what a Combo Box will do here - I do not believe you can do many-to-many filters in the DefaultSelectedItems of a Combo Box.

  • Surajde Profile Picture
    99 on at

    @WarrenBelz This is the original question 😃.  

    If you can please suggest alternate workaround for this. 

  • WarrenBelz Profile Picture
    154,791 Most Valuable Professional on at

    @Surajde ,

    Maybe (I cannot test this) - 

    {
     Domains:
     ForAll(
     Filter(
     SPListName,
     'Escalation Focals' = User().FullName ||
     User().FullName in Owners
     ).Domains,
     Domains
     )
    }

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard