Hello,
I have a Canvas App which at the moment, has one page split in half with a form and also a datatable. The bottom half - The datatable, has a custom table created in Dataverse called "Invoice Portal" which displays an invoice in each row, but it is showing a filtered view : Filter('Invoice Portal', 'Invoice Portal (Views)'.'Awaiting Approval')
The top half of the page, is the Form area which has some columns. I have the DataTable set up so when users select a record on the datatable, the forms column show (or selects) the current records details. I have a button I'm intending to set up so when users have a record selected, they can click this button to approve the invoice which will then trigger flow on processes. From what I understand, DataTables can't be edited and aren't customizable? Does this mean I'm requried to use the Patch method and update the Dataverse table, which would then update the DataTables "Approval Status" to "Approved"?
Dataverse Table: Invoice Portal
Column Name: In Dataverse, its logical name is "be3c6_approvedstatus" - In the DataTable its field displayname is just Approved Status.
Would my Patch code look like:
"Patch('Invoice Portal',Defaults('Invoice Portal'),{'Approval Status':"Approved"})"
I can't figure out the Patch aspect when it comes to dataverse tables and a choice column.