REST API call with mutual authentication

Raji9
Tera Expert

Hi All,

 

I  created a REST message for the GET call and tested it with mutual authentication. Mutual authentication is working fine.

I created Flow, Subflow, and action.  In that action, I am trying with REST step. But REST Step does not support mutual authentication.  (It only supports inline or connection alias)Has anybody implemented REST step or script step with mutual authentication?   I have to execute the REST GET method and parse it (JSON)

 

Thanks

Ra

1 ACCEPTED SOLUTION

Hi John,

you added code for REST Post call. Is it the same for  REST GET method? 

 

Thanks

Ra

View solution in original post

7 REPLIES 7

John Zhang1
Kilo Patron
Kilo Patron

You can use Script steps of Flow action following steps below:

 

step 1- Copy script from REST message 

JohnZhang1_0-1695181554328.png

Step 2 - Create Flow action and then add "Script Steps".  Paste the pre-copied script (step 1) into Script section blow and make proper changes

JohnZhang1_1-1695181843067.png

 

Hi John,

Thanks for your response. Can I use JSON parser step as the next step? HOW to send values (payload)into output.

Thanks

Ra

You can use JSON parser (see my code blow).  You can define output variable to hold your returned payload.

 

JohnZhang1_0-1695253890169.png

 

If you like my solution, please mark my answer is Right Solution.

Hi John,

you added code for REST Post call. Is it the same for  REST GET method? 

 

Thanks

Ra