cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DW22
New Member

Pulling Forms responses to Lists

This query is quite similar to alexb11's yesterday.  Following that, I have checked there were no other rouge flows running and shut anything suspect off.

 

However,

I am trying to create a flow that will include taking new responses throughout the day until 3pm and use them to create an item on a SharePoint List.  (I'd even be happy if it could just take all responses as at 3pm, but it seems I need to use the 'when a new response is created' trigger to get the dynamic content for 'get response details'). This is the chunk of the flow failing.

  • It seems that it will only take the first response and ignore the rest;
  • I've tried putting this into a 'do until loop'.  With various tweaks I have gotten it to take the first response and populate the list with it several times (ignoring the subsequent responses) or, at one point, collecting all responses as they came in, but creating 4-5 fields in Lists for each response.

Grateful for any advice on how to get the section of the below flow to populate the List with each response once by 3pm, then move on to the next command.

 

DW22_0-1696569169640.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

HI @DW22 

 

No the get response works great I am building a sample right now.

 

Flow 1: Recurring for Monday Email Link

You need to have a separate Recourring for the email and sending out the form link, from capturing results. Thats a big reason, as mentioned that its all bonkers

 

Flow 2: Getting responses.

I am going to give an example and then I am going to talk about the elephant in the room.

FLMike_0-1696614823401.png

 

As you can see I do not get an Apply to each, which tells me you are picking the wrong property to fill the Response Id

 

Actually here is what we need to do. Before we start fixing, you need to start a whole new flow that only has the trigger for New Responses being submitted. Then add Get Response details like I did, set the properties and lets see what happens.

I only have one property from the Trigger so...i'd rather NOT try to debug the flow that is jacked up anyway.


Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey

 

 

 

View solution in original post

4 REPLIES 4
FLMike
Multi Super User
Multi Super User

Hi @DW22 

 

I gotta say I'm more confused then when my wife explains "The Housewive of anywhere" shows...

 

1. Why are you sending an email before the blocking Trigger?

2. I'll skip the Do Until for now, but why do you have an apply to each. What exactly are you trying to do?

You have a double layer loop, that uses get responses / user profile and Create item just 1 time. Why are they in a loop?

 

It shows there is some error, but I don't see the actions that have the errors can you share them.

 

Are you saying you essentially want a Recurring flow that runs at 3PM to grab all the response, loop through them and write them to SharePoint?

Or

That you want to keep capturing them in real-time but ONLY up until 3PM of that day?

 

What will happen with replies that come in After 3? Are you just going to ignore them?

 

You cannot do what I think you are trying to do. A single flow will not do that. Trigger flows are intended to run 1 time for every response. they are not intended to be run 1 time, but keep running forever and capture them all.

 

Each response will trigger this. Then get written to SharePoint if thats what you want.

 

If you want to stop collecting them at 3, then put a Conditional Expression ON the trigger that essentially says that the Time is less than 3PM of today.

 

Since I cant see the whole flow and I truly dont understand what you are doing, I am gonna have to wait for some answers and not guess, wait I guess I did guess.

 

lol 


Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey

Hello Mike!

 

I gotta say I'm more confused then when my wife explains "The Housewive of anywhere" shows...

I have a queue of 'new' box sets waiting for binge from 2000 onwards...I might have to add this on : )

 

1. Why are you sending an email before the blocking Trigger? This is to send out an email at 7:30 am each Monday with a link to the Form to a team for them to fill out.  

2. I'll skip the Do Until for now, but why do you have an apply to each. What exactly are you trying to do? When I add the 'List of response details' dynamic content generated by the 'When a new response is submitted' trigger to the 'Get response details' action (which for whatever reason, I've convinced myself I have to do), when it is inside a 'Do until' control, then PowerAutomate automatically puts the 'Get response details' action within an 'apply to each' loop.  I can't seem to stop this.

You have a double layer loop, that uses get responses / user profile and Create item just 1 time. Why are they in a loop? The apply to each loop just adds itself as noted above.  With respect to 'do until' I added that because the flow seemed to only take the first response then move on to the rest of the actions otherwise (please see below).

 

It shows there is some error, but I don't see the actions that have the errors can you share them.

All pictured below.  I've not finished this iteration of the flow, as it was again stuck on the 'get responses'.  In completion (and isolation) the rest of the flow seems to extract the Lists items to an email and send it out fine.

Are you saying you essentially want a Recurring flow that runs at 3PM to grab all the response, loop through them and write them to SharePoint?

Or

That you want to keep capturing them in real-time but ONLY up until 3PM of that day?

I would prefer the former, but don't seem to be able to do a 'Get response detail' without using the trigger to generate the dynamic content. Ultimately, it would not matter as long as each response was captured once in Lists by the time the 3pm email went out.  I've been flipping between the two responses because one did not pick up subsequent responses and the other sometimes did and sometimes didn't, but either way listed the responses multiple times.

What will happen with replies that come in After 3? Are you just going to ignore them?

Yes. Then ensure the Lists fields are deleted before the next week's run.

You cannot do what I think you are trying to do. A single flow will not do that. Trigger flows are intended to run 1 time for every response. they are not intended to be run 1 time, but keep running forever and capture them all.

Ok.  So essentially a 'Get response details' sequence does not interact well with other actions in a flow?  Then, I suppose turning the caution you noted in the other thread on its head and actually ensuring that there are 3 flows running concurrently (i.e. Morning email automation; Put responses to Lists automation; and Take Lists fields to email and send automation) as long as timings are properly set, might do the job?  If that is the case, I think I'm good to go as the parts seemed to work in isolation when I tested them each before trying to integrate them.  

 

Each response will trigger this. Then get written to SharePoint if thats what you want.

 

If you want to stop collecting them at 3, then put a Conditional Expression ON the trigger that essentially says that the Time is less than 3PM of today.

 

Since I cant see the whole flow and I truly dont understand what you are doing, I am gonna have to wait for some answers and not guess, wait I guess I did guess.  Please see below, but I think you've guessed right and I think your response on your other thread (to take it apart and run concurrently) might be the way to go if it is impossible for a flow to run as combined below.

DW22_0-1696581786749.png

 

HI @DW22 

 

No the get response works great I am building a sample right now.

 

Flow 1: Recurring for Monday Email Link

You need to have a separate Recourring for the email and sending out the form link, from capturing results. Thats a big reason, as mentioned that its all bonkers

 

Flow 2: Getting responses.

I am going to give an example and then I am going to talk about the elephant in the room.

FLMike_0-1696614823401.png

 

As you can see I do not get an Apply to each, which tells me you are picking the wrong property to fill the Response Id

 

Actually here is what we need to do. Before we start fixing, you need to start a whole new flow that only has the trigger for New Responses being submitted. Then add Get Response details like I did, set the properties and lets see what happens.

I only have one property from the Trigger so...i'd rather NOT try to debug the flow that is jacked up anyway.


Cheers
If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
Thank You
Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
https://gernaeysoftware.com
LinkedIn: https://www.linkedin.com/in/michaelgernaey

 

 

 

Thank you so much, Mike.  That makes sense and is a much clearer approach.  I do tend to get myself into unnecessarily complicated messes when new at things!

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