Salesforce Extension not receiving access token from salesforce

I have configured the Salesforce extension as per the https://docs.apigee.com/api-platform/reference/extensions/salesforce/salesforce-extension-101

We have used authorizationServer as below while configuring Apigge Salesforce Connector

https://login.salesforce.com/services/oauth2/authorize

as a next step we have created a proxy , added the extension policy to get access token as below we are getting 200 OK response with blank body.  Are we missing anything? Is there any additional inputs to be passed? Do we need to use a different url for authentication server?

<ConnectorCallout continueOnError="true"  name="SaleforceAccountExt">
  <DisplayName>SaleforceAuthExt</DisplayName>
  <Connector>xxxx-salesforce-extension</Connector>
  <Action>getAccessToken</Action>
  <Input><![CDATA[
    {}
  ]]></Input>
  <Output>context-variable-name</Output>
</ConnectorCallout>
Solved Solved
0 1 191
1 ACCEPTED SOLUTION

Where are you looking for the access token?

It should be stored in the variable named "context-variable-name" which is a variable within Apigee and won't be visible to the client calling the proxy unless you specifically configure the response to include it (eg, with AssignMessage) - see https://docs.apigee.com/api-platform/reference/policies/extension-callout-policy#output_element for more details

View solution in original post

1 REPLY 1

Where are you looking for the access token?

It should be stored in the variable named "context-variable-name" which is a variable within Apigee and won't be visible to the client calling the proxy unless you specifically configure the response to include it (eg, with AssignMessage) - see https://docs.apigee.com/api-platform/reference/policies/extension-callout-policy#output_element for more details