Skip to content

Power Apps

Replace All Values In A Column

Replace All Values In A Column Input collection: myInspections18 Location Date InspectionCompleted Headquarters 1/1/2020 Yes Branch 1 1/1/2020 Yes Branch 2 1...

Matthew Devaney
Published
Reading time
1 min read

Before you start

Is this guide for you?

Best entry point
Power Apps
Time investment
1 min read

Imported reference from Matthew Devaney's blog for learning purposes. Original: https://www.matthewdevaney.com/powerapps-collections-cookbook/replace-all-values-in-a-column/. Author: Matthew Devaney.

Replace All Values In A Column Input collection: myInspections18 Location Date InspectionCompleted Headquarters 1/1/2020 Yes Branch 1 1/1/2020 Yes Branch 2 1/1/2020 No Branch 3 1/1/2020 Yes Branch 4 1/1/2020 No

Output collection: mySolution18 (replace InspectionCompleted with ‘No’) Location Date InspectionCompleted Headquarters 1/1/2020 No Branch 1 1/1/2020 No Branch 2 1/1/2020 No Branch 3 1/1/2020 No Branch 4 1/1/2020 No Solution code: //Create a collection

ClearCollect(myInspections18, { Location : "Headquarters" , Date : Date ( 2020 , 1 , 1 ), InspectionCompleted : "Yes" }, { Location : "Branch 1" , Date : Date ( 2020 , 1 , 1 ), InspectionCompleted : "Yes" }, { Location : "Branch 2" , Date : Date ( 2020 , 1 , 1 ), InspectionCompleted : "No" }, { Location : "Branch 3" , Date : Date ( 2020 , 1 , 1 ), InspectionCompleted : "Yes" }, { Location : "Branch 4" , Date : Date ( 2020 , 1 , 1 ), InspectionCompleted : "No" } ); //Replace all values in a column code

ClearCollect(mySolution18,myInspections18); UpdateIf(mySolution18, true ,{ InspectionCompleted : "No" }) Code language: JavaScript ( javascript )

Share this

Tagged

Power Apps

Have a Microsoft 365 topic idea?

Share article suggestions, community session ideas, corrections, or real-world scenarios for future nextM365 learning notes.

Suggest a topic

Keep learning Microsoft 365

Explore more practical guides for SharePoint, Power Platform, Copilot Studio, migration, automation, governance, and security.

Continue learning

Next action

What to do next

Browse all tutorials →