Building and customizing solutions using Microsoft 365 Copilot APIs and tools
Update Salesforce Record Connector can't handle custom Multi-Select Picklist field
I am using Copilot Studio to make an AI Agent. This agent updates an Account record in Salesforce. I am using the Salesforce Update Record (v3) connector.
Alas, my Update step is creating an error:
connectorPowerFxError Evaluating PowerFx expression resulted in error while invoking the connector : PVA.PatchItemV3 failed: PowerFxJsonException Expecting LazyRecord but received a String, in Institution_Types__c
In my Salesforce, the Institution_Types__c is a custom field that is a Multi-Select Picklist. Note that before I update the record, I am using the Get Account Record from Salesforce connector to get the current record. The Get Account Record is returning the Institution Types as an array.
But then... (I'm not sure where the String is coming from -- it must be from Salesforce and internal to the Connector?)
How can this be fixed?