• Maarten Lapere
  • NEWBIE
  • 5 Points
  • Member since 2014

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

 

This is my VF code:

 

<apex:dataTable value="{!Order__c.Opportunity__r.OpportunityLineItems}" var="d">
	<apex:column headerValue="Desc" value="{!d.Description}"/>
</apex:dataTable>

 

I am receiving an error: Error: Aggregate Relationship is used in an unsupported complex expression containing 'opportunity__r.opportunitylineitems'

 

 

Order__c is a custom object which has master-detail relationship with opportunity. I am trying to display the OpportunityLineItem details in a VF page on click of a button(Generate Order, present in Order detail page).

 

Can anybody explain whats wrong?