Hello there,
I have a choice field (Type) in one of my dataverse table A. The choice field has two options ( Business and Personal). I need to patch the value of this choice field(Type) to another dataverse table B. But I kept on getting an error. Here is my code:
Patch (TableB, Defaults(TableB), {Type: LookUp('TableA', Name = selectededName, Type)}),
I also tried Patch (TableB, Defaults(TableB), {Type: LookUp('TableA', Name = selectededName).Type)})
Here is the error message
The type of this argument "Type" doesn't match the expected type "OptionSetValue".
Can someone please tell me how to properly patch in this scenario? Thank you.