web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Concat SharePoint Colu...
Power Automate
Unanswered

Concat SharePoint Columns and Update Another Column With Output from Concat

(0) ShareShare
ReportReport
Posted on by 22

I have a Sharepoint List with multiple lookup columns. It is understood that lookup columns are not accessible in calculated columns. So, I would like to build a flow that:

  1. When an item is created or modified
  2. Get list items (Column A, Column B, and Column C)
    1. Column C is a Date/Time Column, but I would only like to include the MMDDYYYY in the output below
  3. Concat three values with a space between each and update Column D with the output

Thank you so much!

Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @krispag 
    After your trigger action:

    1. Add a Compose action

    DJ_Jamba_0-1711842766634.png


    and add the following formula expression:

    concat(
     NAME_OF_COLUMN_A,
     ' ',
     NAME_OF_COLUMN_B,
     ' ',
     formatDateTime(YOUR_DATE_COLUMN,'MMddyyyy')
    )

     

    2. Add an Update item action. The ID can be pulled from the trigger action.

    Click on the field that needs the concatenated string and select the Compose from the Dynamic content list

    DJ_Jamba_1-1711842945099.png

     

     

  • krispag Profile Picture
    22 on at
    I am getting an invalid expression error. I tried single and double quotes and got the same. I tried brackets around field with spaces in name, same error. I got the rest of the flow set up. Keep in mind, Driver and Rider columns are both single line text lookup columns.
     
    concat( Driver, ' ', Rider, ' ', formatDateTime(In Service Date/Time,'MMddyyyy') )
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @krispag 

     

    For Lookup columns add Value after the column name.

    Here's a full example including how you reference a column from the trigger:

    concat(
     triggerOutputs()?['body/Driver/Value'],
     ' ',
     triggerOutputs()?['body/Rider/Value'],
     ' ',
     formatDateTime(triggerOutputs()?['body/DATEFIELD'],'MMddyyyy')
    )

     

  • sandeepstw Profile Picture
    312 Moderator on at

    Hi @krispag ,

     

    Based no your reply, I will recommend to use this - 

     

    concat('[Driver]', ' ', '[Rider]', ' ', formatDateTime([In Service Date/Time],'MMddyyyy'))

    The column names with spaces should be enclosed in single quotes.

     

    Please mark as solution if it helps. 

     

    Thanks,

    Sandeep 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard