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:
2. Set-integration policy:
Can anyone suggest here.
Solved! Go to 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>