I have an existing SharePoint list 'MyList' that I am going to be patching updated records back to a dataverse table 'MyTable'. I have all of the fields working as expected except for the Assessment Status which is a choice column in both the SharePoint list and dataverse table. I have tried the below variations to get the choice columns to work, but noting is fixing the issues.
All of the error messages state that the:
'assessment status' does not match the expected type 'OptionSetValue'(Assessment Status(MyTables)).Found Type 'Text'
'assessment status' does not match the expected type 'OptionSetValue'(Assessment Status(MyTables)).Found Type 'Record'
Any assistance is greatly appreciated!
Patch(
MyTable,
Defaults(MyTable),
{AsmtLookupMain: DataCardValue117.Text},
{'Assessment Status': LookUp( 'MyList',Choices([@'MyList'].'Assessment Status') = DataCardValue115.Selected.Value).'Assessment Status'}
)
Patch(MyTable,
Defaults(MyTable),
{AsmtLookupMain:DataCardValue117.Text,
'Assessment Status': LookUp('MyList', 'Assessment Status'= DataCardValue115.Selected)
}
)
Patch(MyTable,
Defaults(MyTable),
{AsmtLookupMain:DataCardValue117.Text,
'Assessment Status': LookUp('MyList', 'Assessment Status'= DataCardValue115.Selected.Value)
}
)