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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to use a patch fun...
Power Apps
Unanswered

How to use a patch function to save data from one list to another

(0) ShareShare
ReportReport
Posted on by 108

I have an app that allows the user to select options from 3 dropdown boxes. The dropdown boxes that are retrieving data from 2 SharePoint lists called "filters" and "filter dates". I would like to have a way to save the options each users chooses to a new SharePoint list called "filter app".

I tried using a Patch function but I can't seem to get it to work. 

 

Patch('Filter App Barcode Data',Defaults('Filter App Barcode Data'),{Resist: 'Resist Dropdown'.Selected.Result, Deck: 'Deck and Line', Title: DataCardValue9_3})

 

How do I get the Patch function to work?

Categories:
I have the same question (0)
  • Tamer66 Profile Picture
    228 on at

    Hi @bobbybob 

     

    take a gallery an fill this with your data (your filter).

     

    Use a Button and write this code in onSelect

     

    ForAll(Gallery.AllItems, Patch(SP-List, {SP-Field1: label.text}))

    label.txt == your label in Gallery

     

    If you want to update a SP-List than use this

     

    ForAll(Gallery.AllItems, Patch(SP-List, {ID: labelYourID.Text},{SP-Field1:label.Text}))

     labelIYourID.Text == ID in the Gallery

     

    you can hide your gallery if you need.

     

    I hope this helps.

     

     

  • bobbybob Profile Picture
    108 on at

    @Tamer66 

     

    I already have the dropdowns setup in a Edit Form. I just need to have a formula for my submit button that will save all the data on a new SharePoint list not update one. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard