@Mike Welcome to Microsoft Q&A forum and thanks for reaching out here.
As per my understanding looks like the issue seems to be with your Query formation using the dynamic expression to pass in the array values.
I do not have a Salesforce instance to replicate the same but, I have tried with SQL and was able to overcome the issue by forming a query as below:
I have a array variable as below and formed a SQL query as below using dynamic expression to make it work
select * from dbo.employeelookup where employeeid in @{replace(replace(string(variables('varIDs')),'[','('),']',')')}
The above expression will form a query as below during runtime:
{
"source": {
"type": "AzureSqlSource",
"sqlReaderQuery": "select * from dbo.employeelookup where employeeid in (23,24,25)",
"queryTimeout": "02:00:00",
"partitionOption": "None"
},
"dataset": {
"referenceName": "AzureSqlTable1",
"type": "DatasetReference",
"parameters": {}
},
"firstRowOnly": false
}
If you still continue to see this issue, kindly share your Lookup output JSON payload so that I can share the correct expression.
Hope this helps.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.