Truncating a string in PP Workflow

Posted by: Stephen O'Leary

Truncating a string in PP Workflow - 08/25/21 07:00 AM

Hi All,

I'm using VbScript in PlanetPress Workflow and Was wondering is it possible to truncate the end of a string as the requirement is to have a limit of 50 characters.

Any help would be appreciated.

Stephen
Posted by: MartinS

Re: Truncating a string in PP Workflow - 08/25/21 11:51 AM

there's a string function Left(string, length) which returns a specified number of characters from the left side of a string. I think that's what you need?
Posted by: Stephen O'Leary

Re: Truncating a string in PP Workflow - 08/27/21 12:56 PM

Thanks MartinS, I got it truncated by using Left(string, length)