Adding Line Spaces in Process Folder Comments
  • 12 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Adding Line Spaces in Process Folder Comments

  • Dark
    Light

Article summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.4.0
Root FolderExample Lab - Linespace in Comments
Modules None
DependenciesNone

This Example Lab project Demonstrates how to add line spaces between lines of text in a process folder comment.


Explanation

This project uses the Create Data and Split String steps in order to create linespace between each line of text in the comment. The first create data step is editable to any desired input, anyplace where there is a new line a line space will be added. This works by using the Split String by New Line step to output each line of the input string individually into the ForEach step. The ForEach step then iterates through each line and passes it individually to the second Create Data step. The second Create Data step uses the merge plain text step to construct the comment with line spaces by assembling the previous output on top of the second output each time the ForEach loop is completed. A new process folder is then created and the new entity is saved within it with the output of the second Create Data step as the comment.

Reference Articles
Create Data Step
ForEach Step



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.4.0 or later using our Importing/Exporting article.





Was this article helpful?