Invoke external url in the Pre flow

Hi Team,

I have a senario: In PreFlow, I need to invoke an external url like "https://mockapi.net" or any other and save the response into a variable and use that response or its related variables in next flow (to use in a js script). How can I do this.  Can this be done with any policies?

Appreciate the Support.

0 3 144
3 REPLIES 3

Thanks for this. would be grateful If there is any video to demonstrate. And I would like to add a few things to the above question: the target endpoint should exist. Once Preflow starts, I should invoke an external URL, fetch the variables ,use it in another js file. and at the last, the final target endpoint should be called and gets executed.

Appreciate the support.

Thanks.

The sample I attached in my previous message has the ServiceCallout in the PreFlow. 

Checkout this youtube channel on all videos for Apigee samples, you should be able to find the one you are looking for. 

Thanks