Skip to main content

Notifications

Power Automate - Building Flows
Unanswered

How to add row into table of a file depending on the survery response from customers

(0) ShareShare
ReportReport
Posted on by 2
Hello,
 
I have posted previously but still stuck on this. Thank you in advance for your help.
 
Just to clarify for context, I am trying to add a row into the excel file depending on what tour the customer has been on based on their answer in the survey.  For each tour there is an excel file which contains the tour code e.g BRT_BLRT Feedback - BBFLL50430. Each file has one table and I have named it TourResponses in every single file. In the customer survey there is a question 'what was your tour code?' An example is 'BBFLL50430'. Each tour and tour file has a code e.g BBFLL5 and the date 0430. The is questions in the survery for both so I don't know if we can also try and get the answers into the correct file in a different method based on the customer answers? We have 1000s of tour files, hence the need for automation.
 
For now, I've attempted to use filter array to retrieve the file from 'Get files (properties only)' where the File Name contains the 'tour code' response from the customer survey. I know there is room for customers to make spelling mistakes which is why I've created a condition that if the Tour Code answer is empty it will hopefully create an item in a list instead and I can manually find the tour code. I'm not sure if this is the correct way to set the condition. Ideally I'd like the condition to be if the customer spells the tour code wrong, it will create an item. But will get to that once I've managed to add a survey response to a row in the table for the correct file. 
 
I've tested my flow with a survery where I have entered the correct Tour Code and it still has not added the row into a table with the responses . When I ask copilot it says 'The flow did not go through the apply to each because the filtered array was not empty, indicating that there were existing items that matched the criteria.' 
 
 
 
Get  files (properties only): The exact site address came up with an error when I copied the URl into Library Name so I put Limit Entries to Folder to get the exact file name, not sure if that is correct?  
This is my filter array:
 
Condtion: 
 
 
Get file content:
 
Add a row into a table:
 
 
 
Any help on this is much appreciated! Thanks so much!
 
katie
  • David_MA Profile Picture
    David_MA 8,929 on at
    How to add row into table of a file depending on the survery response from customers
    I’m sorry to hear that you’re having challenges with your flow. The Power Platform forums are designed to address specific issues, but what you’re asking for would involve detailed assistance with developing an entire solution. This is quite complex, and you may require a consultant to assist with the development.

    Just to clarify for context, I understand that you are trying to add a row into an Excel file depending on the tour the customer has been on, based on their answer in the survey. Each tour has an Excel file with a tour code, and each file has a table named TourResponses. You are using a filter array to retrieve the file from ‘Get files (properties only)’ where the file name contains the ‘tour code’ response from the customer survey. You’ve also created a condition to handle cases where the tour code answer is empty.

    However, despite entering the correct tour code in your test survey, the flow has not added the row into the table with the responses. The error message indicates that the flow did not go through the ‘apply to each’ because the filtered array was not empty, suggesting that there were existing items that matched the criteria.

    Given the complexity of what you’re trying to achieve and the need for automation across thousands of tour files, I recommend seeking the help of a consultant who can provide detailed assistance with developing your solution.
     
    Maybe someone else is able to provide assistance without a lot more information, but I would need to see your survey, there the files are located, how they're structure, where they are stored and more. Good luck!!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard