Skip to main content
Hi All,

 

I have a requirement wherein I have to set up an external service via configuration and use flows to call the service methods. This works fine for services without any authentication parameters, however I am facing issues to register the service when there are authentication parameters involved.

The parameters for my services are :

 

X-Api-Key *

string (header) : API Key provided by Integration team per environment

Authorization *

string (header) : Auth Token

JWToken *

string (header) : JWT Token - Send this token only for OpenID

expirein *

string (header) : expire in time field

Content-Type *

string (header) : application/json

 

These are required parameters. When I try to register the service i get an error : "Your schema can't be parsed. Check the schema parameters."

 

The documentation (https://help.salesforce.com/articleView?id=external_services_register.htm&type=5) says that X-Api-Key can be passed in parameters in the named credentials, I tried the same and it did not work out.

 

Any help on how I can pass these parameters while registering the external service in salesforce would be really appreciated.
답변 5개
  1. 2020년 1월 21일 오후 1:05
    @Steve it seems that headers are supported by Enhanced External Services:

    https://help.salesforce.com/articleView?id=enhanced_external_services.htm&type=5

    "Enhanced External Services is an improved way to connect to outside services. New registrations can handle more-complex OpenAPI 2.0 schema, nested object types and send parameters as headers within the HTTP requests. They are not subject to Apex word and character limitations. New registrations can continue to benefit from other capabilities as they become available."
0/9000