Hi
I have a function in my app whereby I want the user to be able to Save their progress so far (Patch (defaults) a new row to a Dataverse table), and then save this record as they go along.
I don't want to use a Form, as I find them ugly.
I have found a way to save the GUID of the saved record into a variable. I then am trying, when the user makes changes to this record and want to 'save' it and overwrite the dataverse row with the latest data, using the below code, but it's not working. Any ideas?
Basically, if the variable is not blank (so the user has already saved which Sets the variable), do a Patch to overwrite this with the latest data.
If(!IsBlank(VendGUID.'Canary Vends', First(Filter('Vends', 'Vends' = VendGUID.'Vends'),
Patch('Vends',
{'Name of Submitter': User().FullName},
{'Change Request Number': CHGNumber_TI.Text},
{'Management group': MgmntGrp_CBB.Selected.Value},
{'DevOps Project Name': DevOpsProject_CBB.Selected.name},
{'DevOps Repo Name': DevOpsRepo_CBB.Selected.name},
{'Subscription Name': 'LZ-Sub-Name_TI'.Text},
{'Subscription type': SubType_CBB.Selected.Value},
{'Cost Center': CostCenter_CBB.Selected.'Cost Centre Code'},
{'Network - vnetCidr': vnetCidr_TI.Text}));
Once I have this sorted, if the variable is blank, I will do a Patch (defaults) action to create a new row.
Thanks
K