Question

IFS cloud - Calling REST API for Application Message

  • 22 November 2022
  • 1 reply
  • 169 views

Userlevel 1
Badge +4

Hi,

Through Event and Event action, I am executing some SQL statement, converting result set as JSON and putting into Application message. Through Routing congifuration, trying to call an REST API POST method. Here my issue is, REST API is expecting to post data in the body in below format. How can I frame the body as like below. Please let me know. I don’t see any option to frame body in routing address, routing rule any where….

{

  “ifscloudmessagedata” : <Data from Application Message>

}


1 reply

Userlevel 7
Badge +20

Hi,

Through Event and Event action, I am executing some SQL statement, converting result set as JSON and putting into Application message. Through Routing congifuration, trying to call an REST API POST method. Here my issue is, REST API is expecting to post data in the body in below format. How can I frame the body as like below. Please let me know. I don’t see any option to frame body in routing address, routing rule any where….

{

  “ifscloudmessagedata” : <Data from Application Message>

}

 

You could make a transformer to make the resultant json expected by your REST api.

Read more about transformer development here: About Transformer Development - Technical Documentation For IFS Cloud

Reply