Skip to main content
Solved

Passing Dynamic Values in JSON Payload for IFS REST API


Forum|alt.badge.img+1

Hello! I am trying to set up a REST Call Event Action. The idea here is that if a record is changed for a particular object in IFS, this should result in a trigger that is recognised by Workato which updates the corresponding object in Creatio. 

The fields that trigger this are DESCRIPTION and ORGANIZATION_ID. This means I have four fields OLD:DESCRIPTION, OLD:ORGANIZATION_ID, NEW:DESRIPTION, NEW:ORGANIZATION_ID. I create the following validated Payload:


{
  "old": {
    "description": "{{OLD:DESCRIPTION}}",
    "organization_id": "{{OLD:ORGANIZATION_ID}}"
  },
  "new": {
    "description": "{{NEW:DESCRIPTION}}",
    "organization_id": "{NEW:ORGANIZATION_ID}}"
  }
}

 

I then set up a recipe in Workato using this as the Payload schema. I map Description to the corresponding object and field in Creatio. I then test this by creating a new record which has description as ‘Test’. However, the output to Creatio always ends up being the literal:
‘{{NEW:DESCRIPTION}}’ instead of the actual value ‘Test’. Am I setting up my JSON incorrectly?

 

Best answer by spetkus2

Try & in front of the variables. &OLD:DESCRIPTION,&NEW:DESCRIPTION, etc.

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+3
  • Do Gooder (Customer)
  • 14 replies
  • Answer
  • March 14, 2025

Try & in front of the variables. &OLD:DESCRIPTION,&NEW:DESCRIPTION, etc.


Forum|alt.badge.img+1

LIfesaver, thank you so much!


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