Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Enable to pass json payload from apigee to app integration flow

np1
Bronze 3
Bronze 3

In Apigee i am trying to send json payload to app integration through POST request using below curl command but not able to pass payload to app integration.

curl command:

curl -X POST -d “{"employee_id":”1”,"employee_first_name":"Megha","employee_last_name":"Bhat","employee_emailID":"test-01@test.com"}”  -k https://hostname/test

Apigee policies to fetch payload and send to app integration:

1. Extract Policy:  

np1_0-1711106089712.png

2. Set-integration policy: 

np1_1-1711106177782.png

Can anyone suggest here.

Solved Solved
2 5 516
1 ACCEPTED SOLUTION

In your SetIntegrationRequest policy, you need to explicitly set this field:

<Request>OrderIntegrationRequest</Request>

Then you need to execute an IntegrationCallout policy. Here's an example:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<IntegrationCallout continueOnError="false" enabled="true" name="IntegrationCalloutInsert">
  <DisplayName>IntegrationCallout.Insert</DisplayName>
  <AsyncExecution>false</AsyncExecution>
  <Request clearPayload="true">OrderIntegrationRequest</Request>
  <Response>processorder_integration_response</Response>
</IntegrationCallout>

View solution in original post

5 REPLIES 5