question

LukaszKrawczyk-3382 avatar image
0 Votes"
LukaszKrawczyk-3382 asked KrisD-1717 edited

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PramodValavala-MSFT avatar image
0 Votes"
PramodValavala-MSFT answered KrisD-1717 edited

@LukaszKrawczyk-3382 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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @PramodValavala-MSFT - has this issue been updated or addressed? I have the same need. Thank you.

0 Votes 0 ·