You are viewing limited content. For full access, please sign in.

Question

Question

Pull Token and Use a Double Line Break

asked on May 18, 2016

I have a workflow that pulls from a multi-value token that is a list of up to 75 standard comments. It then consolidates the comments into a text field, where our staff are then able to make small changes if necessary. I have set it up to add a "line break" between each comments, but it can still be difficult to read through a large list of them.

 

Is it possible to add in a double line break, so that there would be a space between each comment pulled?

 

Thanks,

-Jeff

 

 

0 0

Replies

replied on May 18, 2016

There's no way to do it with the built-in delimiter options, but you can do it with minimal scripting.

Add a Script activity above the one that sets the field values (SDK Script works too, but we don't need the Laserfiche connection overhead on this one), set it to use C# and open the script editor. Under "//Write your code here" add the following:

  string delimiter = Environment.NewLine + Environment.NewLine;
  SetTokenValue("delimiter",delimiter);

Close the script editor. In the token editor you're showing above, change the indexing option to "the value at index" and from the token list next to it, choose the script activity and then the "delimiter" token it creates.

Save and publish your workflow. At run time, the workflow will log a warning about the delimiter token not being a number, but actually work as you wanted it.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.