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 / List datacard dropdown...
Power Apps
Answered

List datacard dropdown values from another datacard value

(0) ShareShare
ReportReport
Posted on by 997 Super User 2024 Season 1

Hi, how to make the dropdown for the Manager's Name is based on the Manager column where the choices are Yes or No. For example, if the employee is a manager then the column Manager will become Yes and his name will be displayed in the dropdown for the Manager's Name column. This is a Sharepoint customized form.

anonymous21_0-1660543452803.png

 

Thank you,

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @syhrh ,

     

    you could try to set combo box's defaultselecteditems property to:

    If(
    IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),
    Filter(Choices([@Employee].'Manager''s Name'),Value=User().FullName),
    Parent.Default
    )

     

    Best Regards,

    Bof

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    @v-bofeng-msft 

    I got these errors

    anonymous21_0-1660710049047.png

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @syhrh ,

     

    Please try 'value' instead of 'Value'

     

    Best Regards,

    Bof

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    Hi @v-bofeng-msft, still the same

    anonymous21_0-1660715380358.png

     

     

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @syhrh ,

     

    I've made a test but did not encountered the problem you mentioned.

    vbofengmsft_0-1660715933425.png

     

    Please check the return value of  Choices([@Employee].'Manager''s Name')

     

    vbofengmsft_1-1660715980457.png

     

    Best Regards,

    Bof

     

     

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    @v-bofeng-msft The Manager's Name is a person column. Is that the reason why? 

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @syhrh ,

     

    Yes it is. Please try:

     

    If(
     (IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected)) && User().Email in ForAll([@Employee].'Manager''s Name','Manager''s Name'.Email),
     {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
     Department: "",
     Claims: "i:0#.f|membership|" & User().Email,
     DisplayName: User().FullName,
     Email: User().Email,
     JobTitle: "",
     Picture: ""
     },
     Parent.Default
    )

     

    Best Regards,

    Bof

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    Hi @v-bofeng-msft, is this formula to display the current user logged-in in the dropdown values? Because that's what I got. What I require to do is the Manager's Name dropdown values to have names of which the Manager column is a Yes. The Manager column is a choice column with Yes and No choices.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @syhrh ,

     

    If current user is a manager it will display current user , if not  it will show nothing.

     

    Best Regards,

    Bof

  • syhrh Profile Picture
    997 Super User 2024 Season 1 on at

    Hi @v-bofeng-msft, I'm sorry, but that's not my requirement 😅

    My requirement is to make the Manager's Name dropdown values have names from the items in the list in which the Manager column is a Yes.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 294 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 169

Last 30 days Overall leaderboard