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 / Power Automate Flow wh...
Power Automate
Answered

Power Automate Flow which is not returning the correct data

(2) ShareShare
ReportReport
Posted on by 15
Hi Team

I've built a Flow, which was very close to perfect, however it's not returning the correct data (and now not even working).

I need a flow that, when a form submission is made, data that is generated in the excel document capturing the form data is then generating an email to send that generated data back to the person who submitted form details.

I had a version that was working but it was returning the row prior to the row that was just submitted. to be clear I want the email that is sent back to contain the generated data from the Excel file only for the most recently submitted item.
the Generated fields I am trying to send back are:
  • Project Code
  • Project Name (not generated - just passing back)
  • Folder name.


I did set it up with the help of ChatGPT but I've been going in circles and I'm not getting anywhere. Now I've gone backwards and I can't even get it to send the email.

Here are my steps
  • When a new response is submitted (Forms)
  • Get Response Details (Forms) ResponseID is ResponseID
  • 5 Second Delay (Delay)
  • List Rows Present in a Table (Excel)
  • Compose (Action) - last(outputs('List_rows_present_in_a_table')?['body/value'])
  • Send an email (V2)

Originally I had the email step inside an 'Apply to Each' and it worked, now it doesn't.

I would love some support with this - I'm losing my mind as it has to be super simple.
 
the attached shows you the Excel collection data sheet (the project Code and folder name are generated inside this document). the issue I was having was when I submitted the project 'AW Test 18.12' I was getting the details back for 'Aw Test 16.24'

At one point i was also getting an email for every single submission made today. So I was getting around 25 emails when I submitted one project.
 
Any help will be appreciated!
 
 
Amanda
 
Categories:

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Tomac Profile Picture
    3,951 Moderator on at
     
    I'd like to clarify something about your flow
     
    Does the Excel file contain more data than just the form response? If not, why can't you simply email the data from the Get Response Details action? Then you don't have to worry about Excel actions or which row is selected.
  • Verified answer
    Tomac Profile Picture
    3,951 Moderator on at
    If you don't need Excel for data combines or transformations, you can use this flow logic for a simple form result emailer:
     
     
    If you need to add combined data from excel, you'll need to select a specific row from a table using a unique ID:
     
    Note that the delay action is there to give the spreadsheet time to sync with the newly submitted response. There may at times be a delay by as much as ten minutes on Power Platform and SharePoint file interactions, so if you don't need the email immediately it's recommended to use a delay of ten minutes.
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    One of your screenshot is not available.
    You said the excel captures the form data, but your process/steps doesn't mention that.
    @Tomac's comment is close to the answer if you can provide that how the excel interact with the form.
  • Srini007 Profile Picture
    3,327 Super User 2025 Season 2 on at
     
    Can you check the screenshot is attached without any issue? I believe you attached the flow screenshot, but we are not able to access that, could you upload it again, also it's better to put expanded flow and also point where you are getting the issue
     

    (If this answers your question you can mark as Answered and give it a Like)

    Regards,
    Srini
  • AW-18070850-0 Profile Picture
    15 on at
    The missing Screenshot is attached showing the flow

     
    Effectively this is the user process
    • Fill in MS Form
    • The Spreadsheet collecting the form details, then generates a Project Code and a Folder name
    • The email goes back to the user with the chosen details from the spreadsheet.
     
    so the Excel form is taking each new response and it gets added with a Unique ID [ID]
     
    These fields are al default fields which are generated via the Form being linked to the Sheet
    • Start Time
    • Completion Time
    • Email
    • Name
    These fields are from the form itself
    Date
    Project Name
    Location
     
    And the Fields that are generating via a formula are
    • Project Code
    • Folder Name
    I want the email to go back to the user to say

    To:
    (Person who submitted the form) [Email]
     
    Subject:
    Your Project Code is ready!
     
    Body:
    Hi ['Name'],
     
    Thank you for submitting your project.
     
    Project Name: ['Project Name']
    Project Code: ['Project Code']
    Folder Name: ['Folder name']
     
    Kind regards,  
    The Projects Team
  • AW-18070850-0 Profile Picture
    15 on at
    I've updated the flow as per @Tomac's response and set the delay to 2 minutes. It appears to be working! This will be my first point of call next time, instead of ChatGPT.

    Thank you everyone!

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