Power Automate concat() Function [With Examples]

In my recent Power Automate project, I needed to combine two strings, Employee Name, and ID, into one string. I researched it and learned that Power Automate provides a useful function called concat() that helps to concatenate multiple strings into a single string.

In this post, I will explain the Power Automate concat function, its syntax, and how to use it, along with various examples like:

  • How to use concat() function using a SharePoint list
  • How to use the concat() function in manual trigger flow

Power Automate concat() Function

The Power Automate concat() function concatenates multiple strings (joins them together) into a single string. It takes two or more string values as input and combines them into a single string.

The concat() will only combine what we have provided precisely. In addition, spaces between text strings should be added.

Power Automate concat Syntax

The Power Automate concat() function syntax:

concat(string_1, string_2....)

In the syntax of the concatenate() function, a comma should separate strings.

Input Parameter:

  • string_1: The first text string is included in the concatenate value.
  • string_2: The second text string is included in the concatenate value.

Return Value:

  • Returns a string by combining all text values.

This is the syntax of the concat() function in Power Automate.

How to use concat() function in Power Automate

Let us see how to use the concat function to concat strings in Power Automate.

Dive into the examples!

Example 1:- Power Automate concat() function using instant cloud flow

Let’s see how to use the Power Automate concat() function by creating an instant cloud flow that gets triggered manually.

  • Ethan + Hunt => The result will be EthanHunt.
Power Automate concat() function expression

To do this, follow the steps below.

1. Open the Power Automate home page https://make.powerautomate.com, click + Create -> Select the Instant cloud flow -> Enter the flow name and choose your trigger’s flow (Manually trigger the flow), then click Create.

2. Add an ‘Initialize variable‘ flow action and set all the details.

  • Name: Provide a name.
  • Type: Select the type as string.
  • Value: I have given as “Ethan.”
How to use concat() function in Power Automate

3. Next, add one more Initialize variable flow action and fill in the details.

  • Name: Take the name of a variable.
  • Type: Select the type of the variable as a string.
  • Value: I have taken the text value as “Hunt.”
concat() function expression in Power Automate

4. Then add the ‘Compose’ flow action and put the expression to join the two strings.

concat(variables('FirstName'), variables('LastName'))
Power Automate concat() function format

Click on Save to save the flow. Then, run the flow.

5. The output will be displayed in the compose outputs below.

Power Automate concat() function syntax

This is how to combine the text strings with the Power Automate concat() function.

Example 2:- Power Automate concat() function using SharePoint list

Let’s discuss another example of the Power Automate concat() function to join SharePoint column values.

To describe this example, I used one of my SharePoint list, i.e., Product Revenue.

You can also see the image below.

Power Automate concat() function using SharePoint List

Now, I wanted to create a product description by joining three SharePoint list column values.

  • Product Name + Category + Product Manufactured by = Product Description.
How to concatenate strings in Power Automate

To work around this, follow the steps below.

1. Navigate to https://make.powerautomate.com, click on + Create -> Select the Automated cloud flow -> Provide the flow name and choose the trigger’s flow (When an item is created) -> Click on Create.

In this trigger, provide all the required details as shown below.

  • Site Address: Provide the SharePoint site address.
  • List Name: Select the name of a specific SharePoint list.
How to combine strings in Microsoft Power Automate

2. Add the ‘Compose’ flow action and provide the expression to join the multiple strings into one string.

concat(triggerOutputs()?['body/Title'], '- Category ', triggerOutputs()?['body/Category/Value'], ' Product Manufactured by ', triggerOutputs()?['body/ProductManufacturedby'])
Power Automate concatenate multiple SharePoint columns

3. Next, add an Update item flow action to update the value of the SharePoint list column.

Configure the details like Site Address, List Name, Id, and Title.

  • Product Description: Take ‘Outputs’ of the compose action from dynamic content.
How to concat() SharePoint list columns in Power Automate

4. Once the flow is created, click Save and Test -> Then test it manually -> Open the SharePoint Online list. Now, edit or modify any SharePoint list item.

Microsoft Power Automate concatenate() function

5. Then, it will display the output in a SharePoint Product Description column after joining the given strings, as shown below.

How to use concat() function to join strings in Power Automate

This is how to use the concat() function in Power Automate using SharePoint.

Conclusion

I trust you will find this Power Automate tutorial informative and useful. It briefly introduces the Power Automate concat() function and syntax.

Finally, the tutorial concludes by demonstrating examples of the Power Automate concat() function.

Moreover, you may like some more Power Automate tutorials:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…