Hi Experts,
I'm currently making a REST call to a third-party system using the IFS Custom Event action type "REST Call" to create a new customer. The payload is simple:
{ "CustomerId": "&NEW:CUSTOMER_ID", "Name": "&NEW:NAME" }
This works fine for sending data. However, I need to capture the response from this call—specifically when the customer creation fails, it should log that error into a custom table/custom LU in IFS. Although I can view the response in the Application Messages, I think querying those messages and updating the custom Logical Unit (LU) might not be reliable when multiple requests are being processed concurrently.
I'm considering using the PLSQL_REST_SENDER_API
in the event action (with type ‘Execute Online SQL’) to make the call synchronously, so I can capture the response directly and log any errors immediately into the custom LU.
Could anyone provide guidance or an example of how to use PLSQL_REST_SENDER_API
for a synchronous REST call and handle the response?
Thanks in advance for your help!