Hello Apigeeks,
I have created a shared flow for splunk logging, which contains a service callout to call splunk’s event collector API from edge cloud. Now i want to use the shared flow at multiple places in my API proxies, but i face an issue since the same service callout policy in the shared flow is being used multiple times and the request variable of the service callout policy is persisted. This creates a problem for the request.uri context variable as it gets suffixed with the same value after every callout. For e.g. if the value during the first call is /event/collector/api, in the second call it becomes /event/collector/api/event/collector/api and the call fails.
I tried using clearPayload property in the policy to clear the request variable but it did not help.
Has anyone faced a similar issue ? Any suggestions for this ?