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 / Button to patch to two...
Power Apps
Answered

Button to patch to two different SharePoint lists based on checkboxes selected

(0) ShareShare
ReportReport
Posted on by 321

Hi,

In my app, I have a gallery from a Main SP list, one of the items is 'Status'. When the status is marked as complete I have a popup, where I have two checkboxes, checkbox1 asks the user "Would you like to archive this item", checkbox2 asks "Would you like to add this item to Maintenance".

 

I have two seperate SP lists for Archive and Maintenance.

 

What id like is a button in my popup window and the button set to patch the data I need to either Archive or Maintenance SP lists, or both depending on checkboxes selected.

 

I assume i'll need an IF but can't seem to figure out the code for if checkbox1 is selected patch to Archive, if checkbox 2 is selected patch to Maintenance or if both selected patch to both lists.

 

Any help appretiated.

 

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @JimboSey ,

     

    The if statement should be the syntax as follows:

    If(
     CheckBox1.Value,
     If(
     CheckBox2.Value
     Patch(
     Archive,
     ....
     );
     Patch(
     Maintenance,
     ....
     ),
     Patch(
     Archive,
     ....
     )
     ),
     If(
     CheckBox2.Value
     Patch(
     Maintenance,
     ....
     )
     )
    )

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard