cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
axray
Resolver I
Resolver I

Power Automate Workflow - SharePoint list concatenate multi select column values into a single line text column

I found a community answer that supposedly worked for someone... but it isn't working for me... 

 

I have a few SharePoint list columns that I am listing in a new single line text column. I can't include the multi select column values, so I am trying to run a flow to concatenate the multi select values into a single line text column, then use that column in the single line text column that includes the various fields (that was a mouthful, I hope I'm making sense - I explain more below).

 

End game: I want the values selected for the following fields to show up in a new field ("RootCause1") in a concatenated string:

 

1_Root Cause Department; 1_Root Cause Category; 1_Failure Mode Category; 1_Countermeasure; 1_Benefit

 

I already have it set up to concatenate 4/5 fields above. The 5th field isn't an option because it's a multi select choice column. So, I tried creating a flow to concatenate the selected values from the multi select choice column "1_Root Cause Department" into a new, single line text field ("RCDept1"). I found a flow setup on this forum that was marked as a solution... so I set mine up that way, but it isn't working right. Can anyone tell me if I did something wrong... or is there a better way to accomplish this?

axray_0-1691093575014.png

 

When this flow runs, this is what shows up:

 

Selected values in the multi select choice column:

axray_0-1691093851604.png  

The flow writes this to the new, single line text field:

axray_1-1691093921010.png

Thank you!

40 REPLIES 40

@axray 

The multi-choice column requires an array with a key, not a string. 

 

You will need to convert your string of values into an array. I've used a Compose action and the split() function.

 

split([yourvariable],'; ')

 

creativeopinion_0-1691094447951.png

Then use a Select action to create your array with a key. The Outputs of the select action will look like this:

creativeopinion_1-1691094543403.png

 

You can use the select action in your Update Item or Create Item action. 

 

Hope this helps!

 

If I helped you solve your problem—please mark my post as a solution .
Consider giving me a 👍 if you liked my response!

👉Watch my tutorials on YouTube
👉Tips and Tricks on TikTok

 

Sorry, I'm lost. I tried adding the coding you showed above, but when I type in split([varRCDept1],'; ') and hit OK, I get an error message: "The expression is invalid." I also don't know what this means "Then use a Select action to create your array with a key." Or this "You can use the select action in your Update Item or Create Item action." The image I shared is the flow in its entirety. There is no "Update Item" or "Create Item."

No worries. I'll outline it step by step.

  1. In the Compose action, you need to insert an expression. To do this you need to click on the Expression tab.
  2. .Start off by typing in the split() function. The split() function takes two strings. The first one is the string of text, in your case it would be your variable. 
    creativeopinion_0-1691099088860.png

     

  3. Put your cursor in between the parentheses of the function, click on the Dynamic content tab and insert the variable. 
    creativeopinion_1-1691099206826.png

    Your expression should look like this:

    creativeopinion_2-1691099225306.png

     

  4. Next you need to add a comma and single quotes with your separator. In your case it's a semi-colon and a space.

    To do this, put your cursor right before the closing parentheses. Then enter a comma and your separator between single quotes. So now your expression should look like this:
    creativeopinion_3-1691099325110.png

     

  5. Then you need to add a Select action. Insert the Outputs from the Compose action above into the From field of the Select action. 
    creativeopinion_4-1691099554192.png

     

  6. As mentioned in my previous post, SharePoint requires the values of a multi-choice column to be an array with a key. The Select action will help you do this. 

    In the Map fields you need to insert Value (just plain text into the key column). In the Value column you need an expression. In order to access the content from your array, you need to use the item() function. 
    creativeopinion_5-1691099670586.png

     

  7. I'm not sure if you are using an Update Item or Create Item action, it doesn't matter which one you use.. but in that action you are going to use the Select action outputs. 

    In your multi-choice column, select this icon to switch to input entire array.
    creativeopinion_7-1691099883223.png
  8. Insert the outputs from the Select action.
    creativeopinion_8-1691099978346.png

     

I have a TikTok tutorial of how to do this here: https://www.tiktok.com/@acreativeopinion/video/7256125830869290245

 

Hope this helps!

 

OK, so that was super helpful... thank you. I am with you until I get to step 7... there are multiple fields for my one multi select choice field listed... do I put the Select output into each one? What do I put in the single line text column I created to put the concatenated list of selections (so I can use that column to add to my other concatenated list)?

axray_0-1691159151036.png

 

I misunderstood your original ask. I thought you were trying to take your multi-select choice form field and put it into a SharePoint multi-choice column field. 

 

I'm a bit confused. How are you mapping a single multi-select choice form field to multiple multi-choice column fields in SharePoint.

 

Usually if you have a multi-choice form field in MS Forms, you want to map those values to a single multi-choice column field. I might be missing something... 

Hmmm - so I want to concatenate the selected values from a multi select choice SharePoint column, then write that string of concatenated text into a different, single line text SharePoint column.

 

The goal is to then be able to select that single line text SharePoint column in my calculated (concatenated) SharePoint column (right now I can't select the column I want because it is multi select).

Can you upload a screenshot of the form field as well as the SharePoint Columns with what it should look like. 

 

I'm finding it a bit hard to understand and picture right now.

axray
Resolver I
Resolver I

This is the multi select choice column on my form:

axray_0-1691163347329.png

I want whatever choices are selected in that column to be concatenated, then that concatenated string of text to be written to a single line of text column (not on my form - only using it for SharePoint view purposes).

 

Once that concatenated string of text is in that text column, I will be able to select that text column in a different, calculated column that has a concatenate formula in it (field called "RootCause1").  

 

End game: I want the values selected for each of the following fields on my form to show up in a new, calculated field ("RootCause1") in a concatenated string:

axray_0-1691163834510.png

 

1_Root Cause Department; 1_Root Cause Category; 1_Failure Mode Category; 1_Countermeasure; 1_Benefit

 

Right now, the 1_Root Cause Department is the multi select choice column that I can't select (not shown in Insert Column) in my calculated column because it is multi select. I need the values selected in that column to show up in the calculated concatenated string of text (along with the other 4 field values above).

I'm struggling to understand the reason that you need a calculated column. From your screenshot of the form, it looks like you are using a PowerApp is that correct? I thought you were using a MS Form. 

 

Can you also explain why you aren't able to take the multi-choice selections from your form and patch those selections directly into a SharePoint column. 

The manager wanted a "table" view - so I had to create a ton of combo box people and date pickers to make it look like a table... there is currently no Patch coding within my Power Apps form and I'd like to keep it that way. We just need a concatenated view of each row from the table in a SharePoint view - so I want to concatenate those 5 field values for the view (so it isn't each field separate, they want to see the row as a whole).

Can you upload a screenshot of the SP List? I'm still trying to picture what this looks like and it's really hard. You can blur out the info.. I just want to see the list. 

The list is huge... it's a big form with two main sections.

Here is a snippet (is this what you were looking to see?):

 

axray_0-1691168160876.png

 

This is the "table" I created - the Root Cause Department fields are the multi select choice combo boxes I need to concatenate and add to the calculated field with the values from each of the fields in each row...

axray_0-1691168347984.png

 

This helps a bit. You can't access complex columns (such as person or group and multi-choice columns) with a Calculated Column.

 

In this case you don't need a Calculated Column. You would need a Single Line of text column. 

 

With your trigger (When an Item is created or modified), you will need to compose the text that needs to go into this column in Power Automate. 

 

Will that work for you?

Right.

 

Correct - I have a single line of text column for the concatenated 1_Root Cause Department values.

 

Then I have a calculated column to hold the entire list of values (the 5 fields I mentioned), concatenated, for the entire row in the table (I just need to get the first text column to work before I can add that column to the calculated column).

 

I found a thread that said to set it up this way - but this does not appear to be working. Do you happen to know why?

axray_0-1691176532186.png

axray_1-1691176579641.png

 

Can you upload the outputs from this part of your flow from a recent run?

axray
Resolver I
Resolver I

It also has this warning:

axray_0-1691176884691.png

Yikes, I just modified an item and checked the run history (this is just the last 10 they show you) - why is it triggering like this?

axray_1-1691177272346.png

 

Outputs from which part of the flow? What I sent is the entire flow.

This part:

creativeopinion_0-1691180447241.png


Take a screenshot of the outputs... the screenshot above is of the flow in edit mode. Click on one of your recent runs, and click on it. 

creativeopinion_1-1691180515762.png


Expand the actions and screenshot the outputs. 



Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (827)