Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Hi John,

Using results[0}, I am sending all the values into the output.  I used these outputs in the subflow I am updating the import set table. But it is pulling only one record.  To pull more records, Do I need to add  'For each ' in the sub-flow before calling the action or do I need to add a while loop in the script step?

 

Thanks

Ra

You shall add a loop in the script steps to find the value that you want to pass to the subflow.