function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
James Storer 1James Storer 1 

External Services Schema no longer accepting Authorization Header (via Flow)

Hello, I'm having an issue where I want to invoke an API however I can't use the Schema to input the API key. 

In example 7 of this help doc:

https://help.salesforce.com/s/articleView?id=sf.external_services_examples_openapi_3_0.htm&type=5

They show the ability to pass an API key via header. However in this doc:

https://help.salesforce.com/s/articleView?id=sf.enhanced_external_services_considerations.htm&type=5

It states that the "Authorization" header is set by the External Service and cannot be overridden by OpenAPI as in input parameter. How then can I create a named credential that sends the header:

"Authorization" : "Bearer (API KEY)"
VinayVinay (Salesforce Developers) 
Hi James,

Check below reference.

https://salesforce.stackexchange.com/questions/324887/using-named-credentials-to-send-api-key-in-authorization-header
https://salesforce.forumming.com/question/3150/using-named-credentials-to-send-api-key-in-authorization-header

Please mark as Best Answer if above information was helpful.

Thanks,
Roolk star440Roolk star440
You might have skipped breakfast at home and require something to fill a hole before you start work or enjoy one of the delicious surprises found on the menu.

visit here:https://mcdonalds-breakfast-menu.info/