Articles in this section

How to join two pieces of text together using Concat()

This article explains what the Concat() function is and provide examples of how it can be used with the binding syntax in smart templates.

  Prerequisites

  • Library and at least one Dynamics module enabled.
  • Templafy Desktop and Office VSTO add-in installed on the PC.
  • Space owner access to the Templafy tenant.

What is the Concat() function?

Concat() is a function that joins two pieces of text together.

Concat() logic

Syntax {{Concat(Value1, Value2)}}
Input Text
Output Concatenated text

  Important

If the output should be a combination of more than 2 fields and/or if you want to use a separator in between the values, the StringJoin() function should be used.

Concat() function examples

Example 1

Using the Concat() function to join two pieces of plain text.

Binding {{Concat("Hello", "World")}}
Output "HelloWorld"

  Important

Plain text must be enclosed in quotation marks.

Example 2

Using the Concat() function to join two values originating from the User Profile.

Binding {{Concat(UserProfile.Team, UserProfile.Initials)}}
Input Team = "HR", Initials = "JD"
Output "HRJD"

Example 3

Using the Concat() function to join two values originating from "Subject" and "Title" questions originating from the response form.

Binding {{Concat(Form.Subject, Form.Title)}}
Input Subject = "Hello", Title = "World"
Output "HelloWorld"

 

preview priority order tech_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.