Question

How to trigger application message through the PLSQL access provider

  • 2 November 2023
  • 1 reply
  • 90 views

Badge +2

Hi team,

My objective is to create an application message from the database itself through the PLSQL access provider using the method "plsqlap_server_api". 

Can someone let me know the steps to do it using already defined core packages? (how to locate method plsqlap_server_api in an existing package etc.)

As an example, when it comes to the ‘send invoice’ function on the customer invoice page can we trigger the application message for the invoice through the DB? 

 

Thank you.


1 reply

Userlevel 6
Badge +15

@Tharani Ariyawansa 

You can create a custom event to monitor for inserts on invoice_tab and then in the event action you can write a short PL/SQL block to create an application message.

I have an example of calling a REST endpoint. In this case, the application message is created with JSON as attachment and then via routing rule / routing address is being sent to the REST endpoint.

Maybe it helps.

 

Reply