function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
benderguybenderguy 

concatenate values with spaces

I want to create a variable that can properly concatenate names with formatting. I have a loop in the flow that allows users to enter in contact info, the it creates a contact and takes the user back to the entry screen again. I want to make a list of all the last names, so that it ends up something like "The Jane, John, and Don Household".

 

I can add two variables together, so that the variable becomes "Jane,John,andDon", but whenever I try to add a space between two values using the "add" function, the cloud designer removes the space. I can't figure out how to tell it to add a spaces before or after a value when concatenating two values. Surely there must be a way.

 

RajaramRajaram

You need to have a variable with ", " and use that in your assignment. 

Alternatively you can also use the Resource "Text Template" in the cloud flow designer with a value "{!first Name1}, {First Name2} and {!First name 3}".