Can anyone help me for adding query parameter to a ServiceCallout Policy to call another proxy endpoint in same org.
<LocalTargetConnection>
<APIProxy>ProxyName</APIProxy>
<ProxyEndpoint>Proxy_Endpoint_Name</ProxyEndpoint>
</LocalTargetConnection>
What are the changes I have to make in the above code?
Solved! Go to Solution.
<ServiceCallout name="ServiceCallout-GeocodingRequest1"> <DisplayName>Inline request message</DisplayName> <Request variable="authenticationRequest"> <Set> <QueryParams> <QueryParam name="address">{request.queryparam.postalcode}</QueryParam> <QueryParam name="region">{request.queryparam.country}</QueryParam> <QueryParam name="sensor">false</QueryParam> </QueryParams> </Set> </Request> <Response>GeocodingResponse</Response> <Timeout>30000</Timeout> <LocalTargetConnection> <APIProxy>data-manager</APIProxy> <ProxyEndpoint>default</ProxyEndpoint> </LocalTargetConnection> </ServiceCallout>
This is clearly documented, did you try using the Set tag?