Hi,
I am fairly new to powerapps and am trying to build an App which holds records in a local collection, patches them to a SharePoint list then clears the list once the Patch has been executed successfully. I am happy with the Patch syntax however I cant work out how to initiate any follow up behavior once the patch has been successful, ie clear collection, post error message etc.
I have pasted my Patch below wich is currently triggered by pressing a button although I aim to build this into the workflow later once I understand the syntax required for this: ('LocalVisits' is the collection and 'PPM Visit Records' is the Sharepoint list with matching fields)
ForAll(
LocalVisits,
Patch(
'PPM Visit Records',
Defaults('PPM Visit Records'),
{
Title: Title,
Start_Time: Start_Time,
Visit_Region: Visit_Region,
Visit_Location: Visit_Location,
Team_Size: Team_Size,
Activity: Activity,
Comments: Comments,
Latitude: Latitude,
Longitude: Longitude
}
)
)
Any assistance would be greatly appreciated.