I am trying to make a local default record without creating a new record in the Dataverse table, but I am having issues with the updating the default record values:
ex:
Set(rcdDefault, Defaults(Dataverse_Table)); --> Create a Blank record of the Default values for all columns of the Dataverse Table
//rcdDefaults = {'Value 1': Blank, 'Value 2': Blank}
//Update Method 1
Patch(rcdDefault, rcdDefaults, {'Value 1': "Example Text}); //-->Returns rcdDefault.'Value 1': Blank
//Update Method 2
Set(rcdDefaults,Patch(rcdDefault, {'Value 1': "Example Text})); //-->Returns rcdDefault.'Value 1': Blank
I've seen this solution posted, but it doesn't seem to be working for me.
Solved: Update value from only one column in local record - Power Platform Community (microsoft.com)
Does anyone know how I can create a local default record for a Dataverse table without making a new record in the dataverse when I do it?
The goal is to allow the user to update the record without needing an internet connection. The idea was to use the Defaults(Dataverse_Table) to get the correct record format and use that local record to store the updated values. Only when the user is done updating the record and the values are submitted to the database would the internet connection, again, be needed. I know this can be done a different way, but that creates a record in the database at the same time I create local record and I wanted to try to make it so that would only happen once all the updates were made to the local record and I patch it to the Dataverse table.