cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
om3r
Helper I
Helper I

Choice column copying all values into destination list - Power Automate Flow

I have created the Source list and Destination list and want to copy the Choice column with its values to the destination list. I have created a flow that looks like this:

 

om3r_0-1653826823927.png

 

 

om3r_1-1653826910987.png

 

om3r_2-1653826966856.png

om3r_3-1653827028840.png

om3r_4-1653827094910.png

 

The flow is running successfully, however, in the destination list it is capturing all the values of the choice column and all the rows. The results look like this:

 

om3r_6-1653827259902.png

 

 

om3r_5-1653827231959.png

 

Can someone please help me why it is happening like this? What am I doing wrong? Is my flow not correct?

 

Any help would be much appreciated!!

 

Kind regards,

Omer

 

 

 

 

 

9 REPLIES 9
rickdg
Frequent Visitor

I saw this and thought "Hey I think I know the answer"

When configuring your choice, you have three choices as to what to display to the user. DropDown, Radio boxes, and checkboxes. I'm guessing you picked the checkboxes, because they are a multi-value selection. So, when you use that one the field that is bound to it will create a list of all the selected values from the checkboxes.

 

om3r
Helper I
Helper I

This is how my column listing looks:

 

om3r_0-1653854199381.png

 

When I am copying the items from the source list, I have only selected two options out of 4 and when getting copied to the destination list, it should display only the selected options. Rather, in each row, it is displaying the selected options for all the rows and repeats the same for every row

Turn off the Allow Multiple selections.

I need that column to have the option of multiple-choice selections. Turning it off will not allow that

Your flow is a bit off. I always recommend naming your labels - it'll help you see where there's cross over. 


Right now what you're telling it to do, based on your flow above, is to loop through every item and append every choice made across all items into a single array. 

Then, in your second loop, you're telling it to the array to every item you create. 

 

My guess is that you're referencing this blog which is a great one, but it's for a single item creation.


Let's try this instead: 

 

Step 1 & 2 - You've already done perfectly; Get Items (filtered if need be), and Initialize your array for your multi-choice. 


Step 3 - Create Item. (We're going to do this in a slightly different order, just to get rid of confusion with the Apply to Each.) In your Apply to Each, populate all the non-multi-choice values from the other. Watch it turn into an Apply to Each before your very eyes.



Step 4 - Append to Array. Create it below the Create Item, and then drag the Create Item below it. In your Append to Array action, name is your initialized Array, and then when you choose Value, if you type the word "value" into your dynamic content, you should see "YOURCOLUMNNAME value". Select that. Add the array-stuff around it And - boom - another apply to each automatically appears. This time, in the right spot. 

 

Rhiassuring_1-1653883655318.png

 

Step 5 - You can now put your Array into your Create Item (since it's below it!)  

 

Rhiassuring_2-1653883719516.png

 

And you might think that's the last step, but, there's one more very important step since you're creating multiple: 

 

Step 6: CLEAR YOUR ARRAY.  Use a "Set Variable", point it at your arrChoices, and set it to [].

Otherwise, your loop will keep on packing in every choice value through each iteration.

 

Here's the whole flow: 


Rhiassuring_3-1653884052854.png

 

______________________________________________________________


Did this answer your question? Please mark it as the solution.
Did it contribute positively towards finding the final solution? Please give it a thumbs up.

I answer questions on the forum for 2-3 hours every Thursday!



om3r
Helper I
Helper I

@Rhiassuring Thank you for helping me out. I have a few questions about how you created this flow and will share my results by following your inputs.

 

In your suggestion of Step 3 & Step 4

 

(Step 3 - Create Item. (We're going to do this in a slightly different order, just to get rid of confusion with the Apply to Each.) In your Apply to Each, populate all the non-multi-choice values from the other. Watch it turn into an Apply to Each before your very eyes.
Step 4 - Append to Array. Create it below the Create Item, and then drag the Create Item below it. In your Append to Array action, name is your initialized Array, and then when you choose Value, if you type the word "value" into your dynamic content, you should see "YOURCOLUMNNAME value". Select that. Add the array-stuff around it And - boom - another apply to each automatically appears. This time, in the right spot. )

 

This is how my STEP 3 looks when creating it:

 

-After filling in the Title, it collapsed and I clicked on Create Item again, I filled the box "Select output from previous step" with  "value" from Dynamic content.

Step3_1Step3_1Step3_2Step3_2

 

I couldn't get what you meant by this "In your Apply to Each, populate all the non-multi-choice values from the other. Watch it turn into an Apply to Each before your very eyes."

 

In STEP 4, I created Append To Array below the Create Item and tried dragging Create Item below Append To Array, however, it didn't let me do that and gave an error.

 

Step4_1Step4_1Step4_2Step4_2 

 

 

So I Deleted Create Item from the above, as I deleted it,  - just above the Append to array variable, "Select an output from previous steps" went blank and I filled it in with "value" from Dynamic content.

 

Step4_4Step4_4Step4_5Step4_5

 

In your Step 4 "Select that. Add the array-stuff around it And - boom - another apply to each automatically appears. This time, in the right spot." - I Didn't get it.

 

I then proceeded with Steps 5 & 6

 

Step 5&6Step 5&6

 

After the flow was created, I tested it out, it ran successfully. However, in the results in the destination list, I didn't get any values for my Choice column.

 

successful flowsuccessful flowresultsresults

This is what the final flow after completion looks like:

 

FinalFinal

 

Please help me out! I'd highly appreciate your help.

om3r
Helper I
Helper I

I edited the same flow again, and changed the values in Append to array variable  - In "Select an output from previous steps" I changed it to "RSVP" and in the "Value" to "RSVP Value".

 

When I first created the flow, I had correct values as you can see from the previous screen shots

Previous SSPrevious SS

 

However, after the flow ran, it got changed to just "values"

after flow ranafter flow ran

 

Now in the destination list, the results of each row are summed up and recorded in the first row of the list

 

Destination ListDestination List

om3r
Helper I
Helper I

Can some one please help me on this

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 (985)