Hi, I want to update all the items in my gallery, but i have some error that i cannot fix it.
GalleryName: GalleryApproval
DataSource:Dataverse
Columnt Type: travel Status is a choice column
ForAll(
GalleryApproval.AllItems,
Patch(
HR_Travel_Request_Monitoring,
LookUp(HR_Travel_Request_Monitoring, ID = GalleryApproval.Selected.ID),
{ 'Travel Status': {Value: "Completed"}}
)
)
Hi @jco0,
ForAll(
GalleryApproval.AllItems As AllItems,
Patch(
[@'HR_Travel_Request_Monitoring'],
LookUp([@'HR_Travel_Request_Monitoring'], ID = AllItems.ID),
{'Travel Status':"Completed"}
)
)
Best Regards,
Kyrie
Please try:
ForAll(
GalleryApproval.AllItems,
Patch(
[@'HR_Travel_Request_Monitoring'],
LookUp([@'HR_Travel_Request_Monitoring'], ID = ThisRecord.ID),
{'Travel Status':"Completed"}
)
)
it just updated the selected item not all the items in gallery
Hi @jco0,
Please try:
ForAll(
GalleryApproval.AllItems,
Patch(
[@'HR_Travel_Request_Monitoring'],
LookUp([@'HR_Travel_Request_Monitoring'], ID = GalleryApproval.Selected.ID),
{'Travel Status':"Completed"}
)
)
Best Regards,
Kyrie
i just want to update the items inside of the gallery
Hi @jco0,
Do you want to update all items in Dataverse table?
Please try:
UpdateIf('HR_Travel_Request_Monitoring',true,{'Travel Status':"Completed"})
Best Regards,
Kyrie
Detailed error information
still the same 😞
MS.Ragavendar
10
LC-26081402-0
6
EE-04041031-0
4