cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ScottSF
Frequent Visitor

SPO PowerApps Forms Users from custom list

Hi guys, PowerApps newbie here trying to replicate an InfoPath form with SPO and a custom form in PowerApps but not sure how to do it. I have a form with dropdowns on it from which to pick users. These users will have an email sent to them using Flow when the form is submitted. I would prefer not to use a Person or Group lookup as I don't want the user to search all users in SharePoint. Instead I want to use a second custom list in SharePoint which has had users added to it that are required by the form and on the form just have a dropdown showing all users in this list.

 

[UserList] (list of users)

-Name (type person or group lookup)

 

[FormList] (will store data for form)

-Manager1 (want this to be a dropdown of Name in UserList)

-Manager2 (want this to be a dropdown of Name in UserList)

-Other fields etc

 

When form is save I need to use the email address of Manager1 and Manager2 to send emails to them for approval or updates. I'm not sure how this should be save to use the email address later or if it's even possible.

 

Seems pretty simple but a lookup in SharePoint on FormList won't let me see the field containing the name of the user in UserList and neither does PowerApps if I add a second data connector and point it at the UserList.

 

Hopefully this makes sense. Can someone please point me to resources which may assist or if not possinle explain why not? 

 

Thanks, 

Scott 

8 REPLIES 8
RezaDorrani
Community Champion
Community Champion

Hi @ScottSF 

 

User List will contain list of users (person field)

 

In your main list, make Manager 1 and Manager 2 as text fields

In the PoweApps form, unlock your data cards for text fields 

delete the text field and add a dropdown control (the drop down control Items property will show data from your Users list)

 

Here is an example

https://powerusers.microsoft.com/t5/General-Discussion/Powerapps-BInding-to-dropdown-control/td-p/12...

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Hi @RezaDorrani , Thanks for the assistance. 

 

UserList contains 2 fields:

Title (hidden)

Manager (Person or Group)

 

FormList

Title (hidden)

Manager1 (Single line of text)

 

From SharePoint I've gone to the list and selected "PowerApps" > "Customize forms" to open the PowerApps builder. All fields in the FormList are added to the form. I unlock Manager1 card and delete the text box. Add a dropdown control to the card. On the Properties tab of the dropdown, I select the UserList as the data source under Items however, the Value dropdown does not show the Employee field which contains the User to be selected. I only see Attachments, Comments, Compliance Asset Id ... ID, Identifier etc

 

So the form won't let me select the name of the Manager, only the ID of the User from the UserList. 

 

What am I missing? I've searched the web for this last night and couldn't find an answer either. 

Hi @ScottSF ,

Do you add a Person type column (called "Manager") in your User List to store the manager info?

Do you want to reference the Manager column values from your User List within your Manager1 Dropdown box?

 

I have made a test on my side, please take a try with the following workaround:10.JPG

 

Set the Items property of the Dropdown box (Dropdown1) to following:

Distinct('20190730_case11', Manager.DisplayName)

On your side, you should set the Items property of the Dropdown box to following:

Distinct('UserList', Manager.DisplayName)

Then set the Update property of the Manager1 data card in your Edit form to following:

Dropdown1.Selected.Result

In addition, if you want to send approval email to the manager email when user submit an item in your FormList, I think the MS Flow (Microsoft Flow) could achieve your needs.

I have made a test on my side, please take a try with the following workaround:11.JPG

 

12.JPG

 

Please take a try with above solution, check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft Hi Kris Dai, thanks for your help with this.

 

I ended up using your suggestion with Distinct(UserList, Manager.DisplayName) to populate the dropdown which worked. I also changed the dropdown to a combobox so I can search results and select from the dropdown however I think this leads to my next problem which is the selected user is not being saved to the FormList in SharePoint. I've updated the datacard containing the combobox so that the update field is:

 

DataCard Update value:

'Manager_ComboBox'.Selected

 

Any ideas? (Sorry to move the goal posts on you and change to a combo)

Hi @ScottSF ,

If you use a Single line text column to store the selected user, please modify your formula within the Update property of the Data card to following:

'Manager_ComboBox'.Selected.Value             /* <-- Please do not miss .Value. The 'Manager_ComboBox'.Selected would retuen a record value rather than Text value  */

Ifyou use a Choice type column to store the selected user, please modify your formula within the Update property of the Data card to following:

{
Value: 'Manager_ComboBox'.Selected.Value 
}

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Kris, 

 

This is not working for me. The display name of the selected user is not saving if I use a single text field nor if I try and save the combo box value. I've tried 2 other tests with text boxes and dropdowns to capture the "manager".

 

Is it possible to save the selected user data into a person/group field? If so, how? I've seen posts referring to Patch. Perhaps this is an alternative. 

 

I get an error trying to use a combobox and the update option you provided:

Update field on DataCard using ComboBox (test 2)Update field on DataCard using ComboBox (test 2)

Here's a test form where I try and update the value of a DROPDOWN 

Test Form Dropdown Items (test 3)Test Form Dropdown Items (test 3)

Maybe I can't update a dropdown which gets it's "Items" from another list? 

Test form DataCard (test 3)Test form DataCard (test 3)

Here's my basic list for Form:

Test Form List (test 3)Test Form List (test 3)

And User:Test User List (test 3)Test User List (test 3)

It can't be this hard. Ideally I want a Person looked up from a list in SPO (so users can add to it) used on a form so users can only select those Persons in the list and then saved as a Person in a Person/Group field in the Form list. My concern with using the display name in a single line text field is that if the display name changes the form will potentially not be correct. But that's of no consequence yet since I can't even get the basics working. 

 

I did manage to get a display name saving to a text box in testing but I had a data card with two object in it (1 combobox and one textbox and when I saved the text box updated but when the combo changed and was saved again the text box concatenated.

 

Do you have any further suggestions for me? 

Hi @ScottSF ,

Do you want to save the Dropdown selected value into a Person type column in your Form List?

 

If you want to save the Dropdown selected value into a Person type column in your Form List, please set the Update property of the ManagerPerson Data card in your SharePointForm1 to following:

{
       Claims: "i:0#.f|membership|" & Lower(LookUp(Office365Users.SearchUser(), DisplayName = Dropdown1.Selected.Result).Mail),
       DisplayName: Dropdown1.Selected.Result,
       Email: LookUp(Office365Users.SearchUser(), DisplayName = Dropdown1.Selected.Result).Mail, 
       Department: "", 
       JobTitle: "", 
       Picture: ""
}

Note: You need to add Office 365 Users connector as data source within your app firstly.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-xida-msft This still didn't work for me and i can't remember precisely what was going wrong. I think I was getting an error when trying to save the form and saving the manager seemed to work sometimes but mostly not, with error. The red error would come up in the top right corner but only for a split second and I couldn't read or screenshot it.

 

I ended up getting most of what I wanted with the help of a colleague using dropdown controls and a second column in the User list as a lookup. I'll post a detailed summary of what we did in a few days for others if that would be of value to others? 

Helpful resources

Announcements

Power Platform Connections Ep 15 | L. Baybutt | Thursday, 1 June 2023

Episode Fifteen of Power Platform Connections sees David Warner and Hugo Bernier talk to Microsoft MVP Lewis Baybutt aka Low Code Lewis, alongside the latest news and community blogs.   Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.      Action requested: Feel free to provide feedback on how we can make our community more inclusive and diverse.  This episode premiers live on our YouTube at 12pm PST on Thursday 1st June 2023.  Video series available at Power Platform Community YouTube channel.    Upcoming events:  European Power Platform conference – Jun. 20-22nd - Dublin Microsoft Power Platform Conference – Oct. 3-5th - Las Vegas  Join our Communities:  Power Apps Community Power Automate Community Power Virtual Agents Community Power Pages Community  If you’d like to hear from a specific community member in an upcoming recording and/or have specific questions for the Power Platform Connections team, please let us know. We will do our best to address all your requests or questions.   

May 2023 Community Newsletter and Upcoming Events

Welcome to our May 2023 Community Newsletter, where we'll be highlighting the latest news, releases, upcoming events, and the great work of our members inside the Biz Apps communities. If you're new to this LinkedIn group, be sure to subscribe here in the News & Announcements to stay up to date with the latest news from our ever-growing membership network who "changed the way they thought about code".       LATEST NEWS "Mondays at Microsoft" LIVE on LinkedIn - 8am PST - Monday 15th May  - Grab your Monday morning coffee and come join Principal Program Managers Heather Cook and Karuana Gatimu for the premiere episode of "Mondays at Microsoft"! This show will kick off the launch of the new Microsoft Community LinkedIn channel and cover a whole host of hot topics from across the #PowerPlatform, #ModernWork, #Dynamics365, #AI, and everything in-between. Just click the image below to register and come join the team LIVE on Monday 15th May 2023 at 8am PST. Hope to see you there!     Executive Keynote | Microsoft Customer Success Day CVP for Business Applications & Platform, Charles Lamanna, shares the latest #BusinessApplications product enhancements and updates to help customers achieve their business outcomes.     S01E13 Power Platform Connections - 12pm PST - Thursday 11th May Episode Thirteen of Power Platform Connections sees Hugo Bernier take a deep dive into the mind of co-host David Warner II, alongside the reviewing the great work of Dennis Goedegebuure, Keith Atherton, Michael Megel, Cat Schneider, and more. Click below to subscribe and get notified, with David and Hugo LIVE in the YouTube chat from 12pm PST. And use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.     UPCOMING EVENTS   European Power Platform Conference - early bird ticket sale ends! The European Power Platform Conference early bird ticket sale ends on Friday 12th May 2023! #EPPC23 brings together the Microsoft Power Platform Communities for three days of unrivaled days in-person learning, connections and inspiration, featuring three inspirational keynotes, six expert full-day tutorials, and over eighty-five specialist sessions, with guest speakers including April Dunnam, Dona Sarkar, Ilya Fainberg, Janet Robb, Daniel Laskewitz, Rui Santos, Jens Christian Schrøder, Marco Rocca, and many more. Deep dive into the latest product advancements as you hear from some of the brightest minds in the #PowerApps space. Click here to book your ticket today and save!      DynamicMinds Conference - Slovenia - 22-24th May 2023 It's not long now until the DynamicsMinds Conference, which takes place in Slovenia on 22nd - 24th May, 2023 - where brilliant minds meet, mingle & share! This great Power Platform and Dynamics 365 Conference features a whole host of amazing speakers, including the likes of Georg Glantschnig, Dona Sarkar, Tommy Skaue, Monique Hayward, Aleksandar Totovic, Rachel Profitt, Aurélien CLERE, Ana Inés Urrutia de Souza, Luca Pellegrini, Bostjan Golob, Shannon Mullins, Elena Baeva, Ivan Ficko, Guro Faller, Vivian Voss, Andrew Bibby, Tricia Sinclair, Roger Gilchrist, Sara Lagerquist, Steve Mordue, and many more. Click here: DynamicsMinds Conference for more info on what is sure an amazing community conference covering all aspects of Power Platform and beyond.    Days of Knowledge Conference in Denmark - 1-2nd June 2023 Check out 'Days of Knowledge', a Directions 4 Partners conference on 1st-2nd June in Odense, Denmark, which focuses on educating employees, sharing knowledge and upgrading Business Central professionals. This fantastic two-day conference offers a combination of training sessions and workshops - all with Business Central and related products as the main topic. There's a great list of industry experts sharing their knowledge, including Iona V., Bert Verbeek, Liza Juhlin, Douglas Romão, Carolina Edvinsson, Kim Dalsgaard Christensen, Inga Sartauskaite, Peik Bech-Andersen, Shannon Mullins, James Crowter, Mona Borksted Nielsen, Renato Fajdiga, Vivian Voss, Sven Noomen, Paulien Buskens, Andri Már Helgason, Kayleen Hannigan, Freddy Kristiansen, Signe Agerbo, Luc van Vugt, and many more. If you want to meet industry experts, gain an advantage in the SMB-market, and acquire new knowledge about Microsoft Dynamics Business Central, click here Days of Knowledge Conference in Denmark to buy your ticket today!   COMMUNITY HIGHLIGHTS Check out our top Super and Community Users reaching new levels! These hardworking members are posting, answering questions, kudos, and providing top solutions in their communities.   Power Apps:  Super Users: @WarrenBelz, @LaurensM  @BCBuizer  Community Users:  @Amik@ @mmollet, @Cr1t    Power Automate:  Super Users: @Expiscornovus , @grantjenkins, @abm  Community Users: @Nived_Nambiar, @ManishSolanki    Power Virtual Agents:  Super Users: @Pstork1, @Expiscornovus  Community Users: @JoseA, @fernandosilva, @angerfire1213    Power Pages: Super Users: @ragavanrajan  Community Users: @Fubar, @Madhankumar_L,@gospa  LATEST COMMUNITY BLOG ARTICLES  Power Apps Community Blog  Power Automate Community Blog  Power Virtual Agents Community Blog  Power Pages Community Blog  Check out 'Using the Community' for more helpful tips and information:  Power Apps , Power Automate, Power Virtual Agents, Power Pages 

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today: https://www.powerplatformconf.com/   

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.       Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.    Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Welcome to the Power Apps Community

Welcome! Congratulations on joining the Microsoft Power Apps community! You are now a part of a vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun! Now that you are a member, you can enjoy the following resources:   The Microsoft Power Apps Community Forums If you are looking for support with any part of Microsoft Power Apps, our forums are the place to go. They are titled "Get Help with Microsoft Power Apps " and there you will find thousands of technical professionals with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Apps community forums! Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered!   Microsoft Power Apps IdeasDo you have an idea to improve the Microsoft Power Apps experience, or a feature request for future product updates? Then the "Power Apps Ideas" section is where you can contribute your suggestions and vote for ideas posted by other community members. We constantly look to the most voted Ideas when planning updates, so your suggestions and votes will always make a difference.   Community Blog & NewsOver the years, more than 600 Power Apps Community Blog Articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on building Power Apps. On the Power Apps Community Blog, read the latest Power Apps related posts from our community blog authors around the world. Let us know if you would like to become an author and contribute your own writing — everything Power Apps related is welcome!   Power Apps Samples, Learning and Videos GalleriesOur galleries have a little bit of everything to do with Power Apps. Our galleries are great for finding inspiration for your next app or component. You can view, comment and kudo the apps and component gallery to see what others have created! Or share Power Apps that you have created with other Power Apps enthusiasts. Along with all of that awesome content, there is the Power Apps Community Video & MBAS gallery where you can watch tutorials and demos by Microsoft staff, partners, and community gurus in our community video gallery.   Again, we are excited to welcome you to the Microsoft Power Apps community family! Whether you are brand new to the world of process automation or you are a seasoned Power Apps veteran. Our goal is to shape the community to be your ‘go to’ for support, networking, education, inspiration and encouragement as we enjoy this adventure together!   Let us know in the Community Feedback if you have any questions or comments about your community experience.To learn more about the community and your account be sure to visit our Community Support Area boards to learn more! We look forward to seeing you in the Power Apps Community!The Power Apps Team

Top Solution Authors
Top Kudoed Authors
Users online (2,341)