Postman Flow: Filtering and chaining further

Hi Team,

Can someone help to show an example or share thoughts on how to proceed with below process?

  1. POST Authorisation request
  2. Returns the response with ID and others
  3. With that ID
  4. GET call to /consents, This will return in collection of object for that x user or any
    Screenshot 2024-01-03 at 17.25.21
  5. Within that returned, I would like to filter with that ID which is returned from step 1
  6. Then using that next call to GET /consent to get that specific call
  7. From there check if !Authorised > Stop there with log else move with the flow and display more details

Can someone help me or share thought or a process to achieve 5,6 and 7?

Thanks for your help on advance

Hi @punbijay

Depending on how your data is structured, you can use an FQL function to filter for the ID in step 5 ( example1 example2). This can be done in the Evaluate Block.

Step 6 will take the output of the block and use that value to GET /consent

Step 7 you can use an If Block to accomplish this.

The general flow should look something like this:

Happy to help with writing the FQL function if you wouldn’t mind giving me the structure of the the data returned.

Hello @flows-daniel ,

Thank yoi very much for your expertise insight was really helpful.

And thank you for offering helping hands on FQL query but i have managed to get it through that said, the link you provided was very useful.

I have now managed to get through the process, although i have one question with regard with my current journey, i.e.

  1. Api URL, baseurl/endpoint/:parameter

Is passing parameter possible via flow process?
I made a successful call if i pass it as baseurl/endpoint?id=value but with parameters i am not able to pass in values in parameter into the URL.

I tried setting up a environment variable but still didnot worked.

Thank you for your expertise insight in advance

Hi @punbijay

It is possible to pass in a parameter. In your url you can have {{url}}/consent/{{id}} where the url can be supplied from the environment and the id will be supplied in the flow.

Your request will look like this and can be passed in via the flow itself:

Hitting the plus button on a variable brings up a list and you can choose a select block. Using this without any path specified selects the value returned from the previous block (in this case the id).

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.