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!
Thank you for your prompt response! I'm trying this out and will back to you if I face any issue.
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.
WarrenBelz
146,605
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional