String Manipulation using Groovy script

Jabir NP March 29, 2015

Hi 

I wanted to get first 100 hundred characters from Summary Field using groovy script.

Please help

2 answers

1 vote
Guilherme Nogueira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 30, 2015

Hi smile

I'm considering that you have a few knowledge about what are you doing.

First: Put summary field text to a string, and than:

 

"s" is your summary field string

String first100charc = s.substring(0, Math.min(s.length(), 100));

It works with Groovy,

 

If you need a few more information, please reply.

 

BR.

0 votes
Guilherme Nogueira
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 31, 2015

did it work?

Suggest an answer

Log in or Sign up to answer