Patch(
List_name,
LookUp(
List_name,
vehicle type = cars
),
{
No_of_tyres : Text("4")
}
)
I have 2 columns in a SharePoint list vehicle and no_of_tyres
The code is only patching for the first item in the list and leaving other values. What should I need to do to patch the value = 4 to all vehicle types = car
Vehicle type | No of tires |
car | 4 |
cycle | 2 |
car | |
car | |
cycle |
Thanks in advance
Solved! Go to Solution.
Hi @Rhk ,
Two options (also assuming here No of Tires is a Text column)
UpdateIf(
List_name,
'Vehicle Type' = "cars",
{No_of_tyres : "4"}
)
or with a Patch
With(
{
wCars:
Filter(
List_name,
'Vehicle Type' = "cars"
)
},
Patch(
List_name,
ForAll(
wCars As aCars,
{
ID:aCars.ID,
No_of_tyres: "4"
}
)
)
)
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.
Visit my blog Practical Power Apps
Hi @Rhk ,
Two options (also assuming here No of Tires is a Text column)
UpdateIf(
List_name,
'Vehicle Type' = "cars",
{No_of_tyres : "4"}
)
or with a Patch
With(
{
wCars:
Filter(
List_name,
'Vehicle Type' = "cars"
)
},
Patch(
List_name,
ForAll(
wCars As aCars,
{
ID:aCars.ID,
No_of_tyres: "4"
}
)
)
)
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.
Visit my blog Practical Power Apps
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
187 | |
52 | |
51 | |
34 | |
33 |
User | Count |
---|---|
266 | |
97 | |
84 | |
76 | |
73 |