Hi all,
I would like to patch two fields to Dataverse from a Canvas Apps form.
I have two Choice field Dataverse comboboxes. The first is named 'Team' and is a Choice column that has two options to pick from.
The 2nd Choice column has an IF statement on the box in Power Apps and the column is named 'Tasks'. The 2nd column Choices depend upon what team is selected in the first column and selects from two Choice column tables in Dataverse (Management Projects, User Team Projects) using this IF statement:
If(
varChoice = 'Team'.'Management Team',
Choices('Management Projects'),
varChoice = 'Team'.'Users Team',
Choices('User Team Projects')
)
This works great for me.
I can patch the first Choice column to Dataverse using
'Team': ComboBox3.Selected.Value
with no issues...
BUT I cannot patch the 2nd Choice combobox with the two choice columns and the IF. Is there a column type in Dataverse that can accommodate this combobox? I've tried a text column to patch to and a current Choice combobox, with no luck.
I get the error "The type of this argument does not match the expected type 'OptionSetValue....'. Found type 'Record'.
Is there another way to get this to patch to Dataverse? Is there a specific data column type that will allow me to patch this IF Choice combobox to?
Thanks a lot in advance.