How to pass catalog item variables as a payload to REST API from workflow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 01:53 PM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 03:50 PM
Hi @Jay75,
You can go to the HTTP method of your web service and look for 'Preview script usage'.
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);
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2024 05:26 AM
cvbnm,./