Skip to main content
Question

IFS cloud - Calling REST API for Application Message

  • November 22, 2022
  • 1 reply
  • 229 views

Forum|alt.badge.img+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

dsj
Ultimate Hero (Partner)
Forum|alt.badge.img+22
  • Ultimate Hero (Partner)
  • 853 replies
  • November 22, 2022
vsraman85 wrote:

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


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