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 / Cascading dropdown bas...
Power Apps
Answered

Cascading dropdown based on detected user

(0) ShareShare
ReportReport
Posted on by 104

Hi guys,

I need to create a dropdown list that will show the data assigned with the user that currently uses the app. I have created a supportive sharepoint list with the assignments:

ocin33_0-1628843016252.jpeg

When the user "Mateusz...@....pl" he should have two options to choose in the dropdown, when "Julita....@....pl" she should see only one option.

 

ocin33_1-1628843132280.jpeg

In the app - the user is detected "OnStart" and I have put the label with detected mail address in the form. "Firma transportowa" dropdown column should show data basing on the supportive sharepoint list.

 

Can you help me with this issue?

 

Regards,

Mateusz

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ocin33,

    Do you want to filter the Firma_ComboBox options based on the current user?

    Could you please tell me how you set the Items property of the Firma_ComboBox, is it a Text or Choice column?

    I made a simple test for you, please check as below.

    I set the Firma_ComboBox Items as below:

     

    If(User().Email="Mateusz...@....pl", ["Option1","Option2"],
     User().Email="Julita....@....pl", ["Option1"]
     )

    If you do not connect Office365Users to your app, please refer to the Label.Text to determine user mail address.

     

     

    If(Label1.Text="Mateusz...@....pl", ["Option1","Option2"],
     Label1.Text="Julita....@....pl", ["Option1"]
     )​

     

  • ocin33 Profile Picture
    104 on at

    Hello, @v-qiaqi-msft 

     

    I will try it and it will probably work but it is hard to put all users into this formula. The example contains 3 different emails but I need to put there another ones - c.a. 15 different users. Is it possible to solve this issue some other way round with the usage of supprotive sharepoint list or something?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @ocin33,

    The answer is No.

    If you want to assign different users with different options, it should write if statement to match all the users, there is no direct supportive way to achieve your need.

     

  • ocin33 Profile Picture
    104 on at

    Hi, @v-qiaqi-msft 

    OK, thanks. Can you tell me how many conditions I can use in the formula? (how many IFs)?

     

    Regards,

    Mateusz

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard