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

How to convert ActivityDescription CLOB to text in Groovy Script

in Sales 4 comments

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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