Optimize Sending Emails in Bulk

You may sometimes have situations where a major incident occurs, such as the network going down in the West Coast of the US. So a huge number of your customers would report issues triggered by this incident.

The root cause for all these issues would be the same incident. In such cases, you can compose multiple outbound messages or SR messages in bulk mode. You can then send out these bulk messages in batches without affecting the normal email communication with customers. Using groovy scripts or REST APIs, application developers can send outbound emails in bulk.

To optimize sending emails in bulk using groovy scripts:

In Application Composer, create an After Create trigger on the service request Message object and add the following groovy script in the Edit Script field:

Trigger: Create

if (ChannelTypeCd == "ORA_SVC_EMAIL") {

setAttribute('ProcessingStatusCd', "ORA_SVC_BATCH_READY");

}

To optimize sending emails in bulk using REST APIs:

  1. Go to Oracle Help Center.

  2. Drill down to your apps service area of interest.

  3. Go to the APIs and Schema section.

  4. Review the REST service definition in the REST API guides available here.

Note:

If you're new to Oracle's REST services, you may want to begin with the Quick Start section.

Here are some key pointers:

  • If you're using REST APIs to create outbound messages and want to send them out in batch: You must set the value of the DeliveryTypeCd attribute to ORA_SVC_BATCH.

  • If you're using REST APIs to create outbound SR messages and want to send them out in batch: You must set the value of the ProcessingStatusCd attribute to ORA_SVC_BATCH_READY.

  • After you create all the outbound messages or SR messages, you can run the Send Outbound Messages scheduled process to send these messages in batch.