You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Sending an Outbound message via groovy

Summary:

Hi,

Is it possible to send an outbound message from a service request using groovy? Basically, we want to automate some outbound messages on the click of a button so users don't have to do it themselves. I tried with the following code but got an error:


if(ChannelTypeCd == "ORA_SVC_EMAIL")
{
def messagesCollection = messages
def messageRow = messagesCollection.createRow() messageRow.MessageTypeCd = "ORA_SVC_SYSTEM_RESPONSE" messageRow.MessageContent = "Hello there!" messageRow.StatusCd = "ORA_SVC_COMMITTED" messageRow.SrId = SrId def messageComm = messageRow.channelCommunication def messageCommRow = messageComm.createRow() messageCommRow.PartyViaEndPoint = "sometestemail@gmail.com" messageCommRow.ChannelId = 300000000324760 }

Content (please ensure you mask any confidential information):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!