Webservices After Rule

Hi,

I’m using webservice after rule where we take response objects and invoke more APIs from the rule.

Now, Lets Say API-1 [HTTP Operation 1] returns me a response object [folder ID, secret ID] using which I’m doing 3 API calls in the rule.

Now I also need to have API -2 [HTTP Operation 2] which returns me a response object [User ID].

Now I need to use all 3 response attributes in the same after rule to complete the API calls in the after rule.

Can anyone help me with suggestions to achieve this.

You don not need to use Rule for this, just configure HTTP operations as many as you want in sequence, you can use response of each HTTP operation as $response object.

1st HTTP operation → folder ID, secret ID
2nd HTTP operation → you can use response of 1st HTTP operation as $response.folderID$ in URL or Body wherever you need

@KRM7

Thanks for your reply.

But I’m trying to explore if this can be achieved from rule as well.

Sure, you can. You need to know Java code to make an API call. You can use this Rule for reference.