Hello,
I have a combobox in which the items are populated from a Dataverse table lookup.
One of the fields that I'm querying is a Choices field. On my form, I have an editable combobox in which I'm able to display the choices with the following formula: Choices('Commission Type').Value. However, I don't know how to set the DefaultSelectedItems property with the choice that is in the Dataverse table.
A related question is that if the user changes the selected item in my Canvas App, what is the Patch syntax to update the Dataverse table record?
The following code is in the OnStart property of my App:
Lookup:
Set(ProductRecord,LookUp(Products, Product = GUID("<guid>")));
The code I tried to use for the DefaultSelectedItems property is
ProductRecord.'Commission Type'