End result I am attempting to have a selected record update a date field, preferably with a confirmation pop up, but for it to update and then I have Power Automate do the rest. But I cannot get the button to function properly, or at all.
I am attempting to add a custom button on my command bar on a sub-grid.
If( Confirm( "Send Report to Member POC and all Additional Contacts?", { Title: "Send Report", Subtitle: "Send Report to Member POC and all Additional Contacts?", ConfirmButton: "Yes", CancelButton: "No" } );, //confirmed Patch(Documents,Self.Selected.Item,{'Report Sent':Now()}); Notify("Report is Scheduled to be sent to Email as Draft for approval.", NotificationType.Success);, //canceled Notify("Report send Canceled", NotificationType.Error); )
I was experiencing issues where the button does NOT show up when selecting a record but shows up when no record is selected.
The prompts would show up but nothing would run as I didn't have any record selected for it to run against.
So I updated the button code to:
Patch(Documents,Self.Selected.Item,{'Report Sent':Now()});
I got the button to show up if I put in its visible property that the name field wasn't blank but whether I had a record selected or not I would get this same error.
I am open to any suggestions.