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 / Create or Update all C...
Power Apps
Answered

Create or Update all Checkbox Value in a Bulk

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I have a scenario where I'd like to create or update all the checkbox Item at the same time. However, the challenge over here is with the creation part, what I'm looking for is a way to first look if the checkbox item value is inserted in the database if it is in the database then update the record otherwise create the new record in database.

 

I have read this blog post, it helped me alot. But I'm still looking for a comprehensive solution where it first check if the record is created in database then do update or create it in a bulk.  Would appreciate the help. Thank you

https://powerapps.microsoft.com/ru-ru/blog/bulk-update-using-forall-and-patch/

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Anonymous 

     

    For existing data which can be populated in Gallery you can try as follows:

     

    ForAll(
     Gallery1.AllItems,
     Patch(
     TestUpload, // YOUR SHAREPOINT LIST
     LookUp(
     TestUpload, 
     ID = Value(lblTestID.Text) // lblTestID.Text is mapped to SP List Item ID
     ),
     {
     myStatus: If(
     chkStatus.Value = true, // chkStatus is the check box check/uncheck
     "Y", // value you want to update back in the list
     "N"
     )
     }
     )
    )

    For New Item as mentioned in the example (per your query), create a new form and add record. It can be achieved as follows:

     

    1. create a new screen - screen2
    2. onselect of a button of icon from existing gallery screen  write the below code
    NewForm(Form1); 
    Navigate(Screen2, none)

    Set the datasource of Form to the SP List

    on submit write below code 

     

    SubmitForm(Form1)

    onsuccess property of the Form1, you can call Back() method to go back to gallery

     

    Thanks.

     

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

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard