• Rene Grohmann 2
  • NEWBIE
  • 5 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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.