Hello,
I'm trying to create a bulk update on my timesheet data PowerApp. I have a data table, drop downs for filters and then a button called Bulk Edit Status. OnSelect on the button I'm creating a new collection called colFilteredTimesheets - which contains all the currently displayed timesheet entries based on the filters set by the users. I've checked and the collection is being created successfully.
My user will then choose a Status value from a drop down box and I want to bulk update all records to the new status. I have the following code on my save button:
ForAll(
RenameColumns(
colFilteredTimesheets,
"ID",
"PT ID"
),
Patch(colFilteredTimesheets,
LookUp(colFilteredTimesheets,ID = 'PT ID'),
{Status: drpBulkEditStatus.SelectedText}
)
)
I'm getting an error saying "The data source supplied to the function is invalid".
Any suggestions?
Thank you 🙂
Jo-Anne