Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Groovy to insert messages from Service request header — Cloud Customer Connect
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

Groovy to insert messages from Service request header

Received Response
9
Views
1
Comments
in Sales 1 comment

Summary:

Based on an attribute value on Service request header, Would like to insert an internal note row in message tab via groovy

Content (required):

def srid = getAttribute('SrId')

def msg = messages.createRow() 

 msg.setAttribute('SrId',srid)

 msg.setAttribute('MessageTypeCd','ORA_SVC_INTERNAL_NOTE')

 msg.setAttribute('MessageContent','Hello')

 msg.setAttribute('StatusCd','ORA_SVC_COMMITTED')

 messages.insertRow(msg)


Getting following error on executing above code : Post threshold limit reached. Some entities yet to be posted.

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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