I invoke a flow from an LWC component. I just want to pass an array of Contact to the flow from LWC (in the js below, the 3rd variable). What should be the type that we should use in the inputVariables for SObject arrays?
html
<template>
<lightning-flow
flow-api-name='Survey_customers',
flow-input-variables={inputVariables}
>
</lightning-flow>
</template>
js
get inputVariables() {
return [
{
name: 'OpportunityID',
type: 'String',
value: '<Opportunity.Id>'
},
{
name: 'AccountID',
type: 'String',
value: '<Opportunity.AccountId>'
},
{
name: 'ContactList',
type: 'SObject[]',
value: '<Contact[]>'
},
];
}
When I use type: 'SObject[]', the following is the error:
The dataType SObject[] for argument ContactList is not a valid data type.
type: 'SObject'?