Depending on how your data is structured, you can use an FQL function to filter for the ID in step 5 ( example1example2). 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.
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.
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.
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).