Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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:
  • Verified answer
    PolyAlvarez Profile Picture
    23 on at
    Re: From Canvas app add a new record in SharePoint list of "Voted" item from a gallery

    Thank you for your prompt response! I'm trying this out and will back to you if I face any issue.

  • Verified answer
    kelseytran Profile Picture
    292 on at
    Re: From Canvas app add a new record in SharePoint list of "Voted" item from a gallery

    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,605 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard