How to convert ActivityDescription CLOB to text in Groovy Script
Summary:
We are trying to gather the ActivityDescription in a Groovy script to parse to an external system via Web Service.
The issue we encounter is that ActivityDescription is a CLOB. We need to be able to convert this to text in order to build our payload for the external web service.
Code Snippet (add any code snippets that support your topic, if applicable):
def subject = Subject;
def text = ActivityDescription //is a CLOB that needs to be converted to string - throws error
def POST_param =
[
simpleMessage:[
subject:subject,
text:text,
to: to,
cc: cc,
bcc:'',
importance:'high',
saveToSentItems: true
Tagged:
1