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 / Making changed on seve...
Power Apps
Unanswered

Making changed on several item

(0) ShareShare
ReportReport
Posted on by 63

Hi
I'm using the below code (in Save button) to update field changes in Status column in my SharePoint list which called Vacations.
It's works, but it's allow me to update one field at a time.
How can I updated changes in multiple fields by one click on Save button?

 

 

Patch(
Vacations,
Gallery6.Selected,
{ Status: ComboBox_Status.Selected }
);


Refresh(Vacations)

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,679 Most Valuable Professional on at

    Hi @cabutbul ,

    How are you identifying which records to update ?

  • cabutbul Profile Picture
    63 on at

    After the changes by the user, it is okay that clicking the Save button will update all the records in the gallery

  • WarrenBelz Profile Picture
    155,679 Most Valuable Professional on at

    @cabutbul ,

    Is ComboBox_Status inside or outside of the gallery ?

  • cabutbul Profile Picture
    63 on at

    inside

  • WarrenBelz Profile Picture
    155,679 Most Valuable Professional on at

    Hi @cabutbul , 

    You did not state your data source, but if SharePoint the Identifier can be the ID field.

    ForAll(
     Gallery6.AllItems As _Data,
     Patch(
     Vacations,
     LookUp(
     Vacations,
     YourIdentifier = _Data.Identifier
     ),
     {Status: _Data.ComboBox_Status.Selected}
     )
    );

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • joao_guerreiro Profile Picture
    56 on at

    Hello catbulbul;

     

    Here's my solution for your problem.

    ForAll(Gallery6.AllItems; 
     If(ThisRecord.Status.Value = "Free";
     Patch( 
     Vacations; 
     LookUp(TestPatch; Title = Title1.Text); 
     { 
     Status: ComboBox1.Selected.Value
     } 
     );; 
     ;
     false
     )
    )

     

    I hope it helped you and have a excelent day!

    Don't forget to give kudos and mark this as solution if it helped you ❤️ 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard