I have send out an Application Message from IFS to an external API endpoint using a HTTP connector.
I have reaced the endpoint succesfully.
The endpoint returned me back a message and IFS is showing it to med in a .txt file.
How can I access that response, and have is saved somewhere in the database?
Any help is very appreciated.
Kresten
Page 1 / 1
Hi Kresten,
I haven’t used this process so this is just a guess...
Create a Routing Rule for the READER_RESPONSE queue and configure an output such as To File.
I’ll try this and see if it works...
And you can access the READER_RESPONSE messages in Application Messages.
The response doesn’t come as an application message.
I don’t have the READER_RESPONSE queue, and it doesn’t show in any other queue.
I’m not sure how to handle this...
If you want the technical info to use in Lobby/Event/Quick Report etc.:
The response(s) to an application message is saved in table fndcn_message_body_tab with column REPLY set to 1.
There is a view MESSAGE_BODY which shows the records from that table which you shall use instead of the table directly.
Elaborating the answer by @Tomas Ruderfelt , here’s what I have done in a similar scenario where I had to process the reply from an external web service in Apps9 without doing any code modification
In my scenario, I’m getting the currency rates from an external API and update IFS currencies.
1: Create an event on FNDCN_APPLICATION_MESSAGE_TAB based on STATE field
Event Action: remember to add proper conditions just to trigger the action only for your integration, and state = Finished
This calls another event in a background job. Reason for taking this approach is the message reply is not commit at this time so we can’t access it directly from the event action on FNDCN_APPLICATION_MESSAGE_TAB