web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / From Canvas app add a ...
Power Apps
Unanswered

From Canvas app add a new record in SharePoint list of "Voted" item from a gallery

(0) ShareShare
ReportReport
Posted on by 23

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!

Categories:
I have the same question (0)
  • Verified answer
    kelseytran Profile Picture
    292 on at

    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.

  • Verified answer
    PolyAlvarez Profile Picture
    23 on at

    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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard