Notifications
Announcements
Hello experts,
I'm very new at PowerApps so perhaps my question is to easy but I cannot figure out which would be the best approach to cover my request. This is my scenario:I have a Canvas app to show in a gallery a list of use_cases (SharePoint list). When a user navigates the gallery and picks a use_case, it navigates to Details screen (with info from that SharePoint list) and have a "vote" button there to allow them to vote the use_case to increase the priority of the same in the engineering team backlog. For the voting, I need to store into a secondary SharePoint list the use_case id voted, the user who voted and the date of the voting.Which would be the best approach to implement a solution? Thank you in advance for the guidance!
Hi @PolyAlvarez ,
You can use a patch function for this. Here's an example of the code you'd implement:
Patch( VotingList, Defaults(VotingList), { UseCaseID: Gallery1.Selected.ID, Voter: User().Email, DateVoted: Now() } )
You'll need to replace VotingList with the actual name of your second SharePoint list that you want to store that information, Gallery1 with the name of your gallery, and ID with the column name that has the ID of the use case in your SharePoint list which you can create a lookup column for.
Thank you for your prompt response! I'm trying this out and will back to you if I face any issue.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268