Skip to main content
Question

IFS Workflow REST API Handeling respons value

  • February 3, 2025
  • 1 reply
  • 40 views

Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 2 replies

I’m trying to pick up the respons value in attribute Code returned from a Rest API call i IFS Workflow.

How do I right the syntax for that? 

 

1 reply

dsj
Superhero (Partner)
Forum|alt.badge.img+22
  • Superhero (Partner)
  • 828 replies
  • February 3, 2025

Hi ​@katase 

 

It looks like your api response is in the following format

{
    "code": "001",
    "message": "test message"
}

To extract values from the response, add two output keys in the REST call

 

Then you can use the value in the script as execution.getVariable(‘_apiResponseCode’)

 

Hope it helps!

Damith


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings