Is there a way to add custom header to Salesforce Connector?

Lukasz Krawczyk 26 Reputation points
2021-08-30T14:26:11.727+00:00

Hello,

I have a logic app built and using Salesforce connector to update Case record in Salesforce. Is it possible to add custom header:
Sforce-Auto-Assign: FALSE

I've tried to add it using Logic App code view like below:

"Update_record": {
"inputs": {
"body": {
"NC_Reference__c": "XXXX"
},
"headers": {
"Sforce-Auto-Assign": "FALSE"
},
"host": {
"connection": {
"name": "@parameters('$connections')['salesforce']['connectionId']"
}
},
"method": "patch",
"path": "/v3/datasets/default/tables/@{encodeURIComponent(encodeURIComponent('Case'))}/items/@{encodeURIComponent(encodeURIComponent(body('Parse_JSON')?['soapenv:Envelope']?['soapenv:Body']?['notifications']?['Notification']?['sObject']?['sf:Id']))}"
},
"runAfter": {
"Parse_JSON": [
"Succeeded"
]
},
"type": "ApiConnection"
}
}

but the custom header is not sent (the Salesforce functionality is still being triggered).

Any idea if this is possible?

Thanks,
Lukasz

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,996 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,611 Reputation points Microsoft Employee
    2021-09-01T09:24:42.037+00:00

    @Lukasz Krawczyk Adding the header here would just send it to the Salesforce Connector but won't necessarily be sent as-is to Salesforce. Instead, this has to be implemented in the connector itself.

    I will share this feedback with the concerning team to include support for this.


0 additional answers

Sort by: Most helpful