How to pass catalog item variables as a payload to REST API from workflow

Jay75
Tera Contributor

Hello all,

 

I am looking to pass catalog item variables as a payload to REST API from workflow after approval activity, how can this be done can anyone help me on this.

 

Thanks

Jay

2 REPLIES 2

Sonam Tiwari
Tera Guru

Hi @Jay75,

You can go to the HTTP method of your web service and look for 'Preview script usage'.

SonamTiwari_0-1693262151683.png

Copy the script. Put it in a run script after your approval, then to pass the catalog variables in parameters, you can have something like:

r.setQueryParameter("problemCode", current.variables.variable_name);

 

Sahilyadav
Tera Contributor

cvbnm,./