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):
0