cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

MS Form Attachment to Email - GetFileContent via Path File Not Found For Some Files Despite Existing on SharePoint

I have a flow that takes an MS Form submission with multiple attachments and creates an email with the attachments included. My flow has been active for about 4 weeks and has been triggered and completed successfully 4 times prior. However, the most recent (5th) trigger has failed due to a 404 File Not Found error even though the file exists in SharePoint.

 

I use a condition to determine if the submission has an attachment and the error is occurring at the first step in the "yes" side of the condition - it is Get File Content using Path in an Apply to Each action:

 

Screenshot 2024-04-23 165250.png

 

Interestingly, it appears this step worked on 2 of 5 attachments - attachments 1-3 appear to have failed while attachments 4-5 seemed to work properly:

 

  • 1st attachment failed - note that the blacked out File Path opens the attachment in a browser window:

Screenshot 2024-04-23 165028.png

  • 4th attachment succeeded

Screenshot 2024-04-23 170255.png

I re-triggered the flow via Power Automate dashboard and the flow failed at the same step for the same 3 files and succeeded for the same 2 files - this leads me to believe the issue is *not* related to the flow looking for files that have not yet been created in the SharePoint folder yet.

 

It is worth noting that the 3 failed attachments have very similar names as do the 2 successful attachments:

 

  • 3 failed - "Screenshot 2024-04-17 at 11.XX.XX AM_First Last.png"
  • 2 successful - "Chat SS3_First Last.jpg" and "Chat SS4_First Last.png"

Screenshot 2024-04-23 171043.png

 

So far, the only two things that come to mind:

 

  • Is this character length issue of the longer named items?
    • I did check the SharePoint link lengths and the longer linked images came to 245 characters or something like that

 

  • Are periods ('.') valid characters in SharePoint file names but cause issues with getting file content?

 

Thanks!

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@tbrock_troc 

You might find this YT Tutorial helpful: How to Get Microsoft Form File Uploads Attached to an Email 📧

 

In this Microsoft Power Automate Tutorial I’m going to cover where file uploads from your Microsoft Forms are saved. I’ll also show you how attach the uploaded files to an email and how to dynamically name the files and customize the recipient of the email based on the selections made in your Microsoft Form. I will also cover how to handle responses that don’t include any file uploads.

 

IN THIS VIDEO:

‌ Two types of MS Forms

‌ Where Microsoft Personal (OneDrive) Form File Uploads are Saved

‌ Where Microsoft Group Form File Uploads are Saved

‌ How to Add a File Upload Question to an MS Form

‌ How to get a Microsoft Form ID

‌ How to get a Microsoft Form Response

‌ How to Get the Dynamic Content Microsoft Form File Upload Content

‌ How to handle Single and Multiple Microsoft Form File Uploads

‌ How to use a Scope action to Organize and Group Your Flow Actions

‌ How to Get the File Content from an MS Form File Upload

‌ How to Collect All Files Uploaded to a MS Form and Attach to an Email

‌ How to Handle MS Form Response When a File Isn’t Uploaded

‌ How to Create an Email Key

‌ How to Send an Email to a Specific Recipient Based on Form Selection

‌ How to Create a Dynamic Output Based on Form Selection

 

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!

👉 Level up your Power Automate skills by checking out my tutorials on YouTube
👉 Tips and Tricks on TikTok and Instagram

View solution in original post

10 REPLIES 10

@tbrock_troc 

You might find this YT Tutorial helpful: How to Get Microsoft Form File Uploads Attached to an Email 📧

 

In this Microsoft Power Automate Tutorial I’m going to cover where file uploads from your Microsoft Forms are saved. I’ll also show you how attach the uploaded files to an email and how to dynamically name the files and customize the recipient of the email based on the selections made in your Microsoft Form. I will also cover how to handle responses that don’t include any file uploads.

 

IN THIS VIDEO:

‌ Two types of MS Forms

‌ Where Microsoft Personal (OneDrive) Form File Uploads are Saved

‌ Where Microsoft Group Form File Uploads are Saved

‌ How to Add a File Upload Question to an MS Form

‌ How to get a Microsoft Form ID

‌ How to get a Microsoft Form Response

‌ How to Get the Dynamic Content Microsoft Form File Upload Content

‌ How to handle Single and Multiple Microsoft Form File Uploads

‌ How to use a Scope action to Organize and Group Your Flow Actions

‌ How to Get the File Content from an MS Form File Upload

‌ How to Collect All Files Uploaded to a MS Form and Attach to an Email

‌ How to Handle MS Form Response When a File Isn’t Uploaded

‌ How to Create an Email Key

‌ How to Send an Email to a Specific Recipient Based on Form Selection

‌ How to Create a Dynamic Output Based on Form Selection

 

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!

👉 Level up your Power Automate skills by checking out my tutorials on YouTube
👉 Tips and Tricks on TikTok and Instagram

Thanks @creativeopinion.


I will check it out.

Hi @creativeopinion ,

 

I had a chance to review a couple parts of your video and I an interested in the approach you took, but have a couple of questions:

 

  • Regarding the "Email Key" compose step, is this something you can do with a question that allows for multiple responses? Is it as easy as just listing out each of the answer options just like you would with a single-select question?

 

  • If I have multiple questions with answers that need to trigger an email, is it a separate "Email Key" action for each question needed or can I put all of the answers that need to trigger an email from multiple questions into a single "Email Key" action? Do you have a recommendation if both options technically work?

Thanks again!

@tbrock_troc The "Email Key" was just an example of how you could return a value (such as an email) based on a selection made. However, my recommendation would be to use an Excel Table or SP list to store your "key". It would be a lot easier to manage.

 

It really depends on your use case and the logic required for your flow. If you could explain the logic of how you would need your flow to work—I could make some recommendations. I don't have enough information based on what you've shared so far to offer specific recommendations.

@creativeopinion ...thank you for taking the time to respond and thanks again for such an informative video.

 

The use of the compose action to create the email key seemed achievable based on my skill level.

 

I like the recommendation of using an Excel table or SP list to store the email key. With that said, I am an automation novice so I am struggling to visualize the actions and order necessary to recall that information from the SP table dynamically.

 

I think I would also need to understand how to set up the SP list - is it set up as a list of people with a column containing each of the answer options that should result in that person being included or a list of the answer options with a column containing all of the people that should be included if selected?

 

Do you have a video tutorial on that process?

 

As for our flow(s):

 

We have two MS forms - an audit/event request form and a post-audit/event survey - that will have similar needs in terms of dynamically created recipient lists based on responses to form questions. I am working on the audit/event request form first:

  • Audit Account - multiple select
  • Audit Product Category - multiple select
  • Event Account - single select
  • Event Product Category - multiple select
  • Specific Account Event Product Category - multiple select

 

The account answer options are mostly the same - there are a couple of additional options in the Event Account question. The product category answer options for all 3 questions are the same. Just to make it easy, we'll say that some combination of the following will need to be notified based on the form selections to the questions above:

 

  • 10 account teams
  • 5 product teams

 

The form itself is set up with and parent question and branching so only a couple of the questions above will be answered for each submission:

 

  • If Audit is selected in a parent
    • Audit Account
    • Audit Product Category

 

  • If Event is selected in parent & child Event Account is any retailer except a specific retailer:
    • Event Account
    • Event Product Category

 

  • If Event is selected in parent & child Event Account is the specific retailer:
    • Event Account
    • Specific Account Event Product Category

 

Example scenarios we might encounter:

 

  • Audit request for 1-10 accounts and 1-5 product categories
  • Event request for any account except specific account and 1-5 product categories
  • Event request for specific account and 1-5 product categories

 

i.e. An audit request for mobile computing (category) at Office Depot and Staples (accounts) would generate a single email with the mobile computing product team and the Office Depot and Staples account teams as recipients.

 

i.e. An event request for gaming computing and mobile computing (categories) at Best Buy (account) would generate a single email with the gaming computing and mobile computing product teams and the Best Buy account teams as recipients.

 

Thanks and subscribed on YT.

 

Stretch goal - since some people are part of more than 1 account team, having a step that removes duplicate email addresses from the output string used in the email recipient field would be great.

 

I am pretty sure there aren't any issues with having the same recipient listed more than once in an Outlook email but it's just a nice "professional" detail, so this is just a nice-to-have.

@tbrock_troc When looking at the logic of your flow I think you need to focus on the outcome which in this case are your two examples:

 

i.e. An audit request for mobile computing (category) at Office Depot and Staples (accounts) would generate a single email with the mobile computing product team and the Office Depot and Staples account teams as recipients.

 

i.e. An event request for gaming computing and mobile computing (categories) at Best Buy (account) would generate a single email with the gaming computing and mobile computing product teams and the Best Buy account teams as recipients.

 

You have a few options:

  • Use a SP List/Excel Table to Store a list of categories and the respective product teams.
  • Use a SP List/Excel Table to Store a list of Accounts and the account teams.
  • Use a SP List/Excel Table to store both the categories and accounts with their respective recipients.

I'm unclear on how you are managing the recipients. In your examples, you state account teams, and product teams. I was assuming there was a shared mailbox or DL list. However, later in your post you indicate this:

 

Stretch goal - since some people are part of more than 1 account team, having a step that removes duplicate email addresses from the output string used in the email recipient field would be great.

 

Are you looking to assign users to each Account and/or Category? You need to come up with a system that works for your needs—I'm not sure on all your business requirements. Don't worry about duplicate email addresses at this point—there is a way to filter out email addresses so you only have a list of unique email addresses.

 

If you are wanting to assign individuals to Accounts and/or Categories you may have to consider using a SP List to track the recipients and then assigning them Accounts and Categories instead.

 

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!

👉 Level up your Power Automate skills by checking out my tutorials on YouTube
👉 Tips and Tricks on TikTok and Instagram

 

Hi @creativeopinion:

 

My flow is far is more rudimentary that you're probably imagining.

 

Also, it may be worth noting that most of the recipients on this list are outside of my organization - I believe we can still add them as a person to a SharePoint list on our side.

 


@creativeopinion wrote:

I'm unclear on how you are managing the recipients.


When it comes to the email recipients, my current flow uses condition actions based on form responses to trigger the email action and each conditional email action has a fixed recipient list - there is a separate conditional email action for each individual account team and a separate email for each individual product management team. 

 

I've been tasked with finding a way to create a single email thread with the pertinent account and product management teams based on the form entries for account and product category.

 


@creativeopinion wrote:
  • Use a SP List/Excel Table to store both the categories and accounts with their respective recipients.

This sounds ideal to me - I would only use it for managing the automations. Plus, not many people would have access to it but it would allow the few colleagues that would and who are less familiar with power automate to help manage the lists.

 


@creativeopinion wrote:

Are you looking to assign users to each Account and/or Category? 

 

If you are wanting to assign individuals to Accounts and/or Categories you may have to consider using a SP List to track the recipients and then assigning them Accounts and Categories instead.


I am not sure as I am pretty new to managing SP lists as well - as this list would be used strictly as an email key for automations and will have recipients from outside my organization listed, I am open to whichever approach is achievable and functional for mapping form responses to the email key.

 

Would it be better to set the SP List up where Account/Category options match the account and product category answer options in the form and the corresponding recipients are added to each option?

 

tbrock_troc_1-1714701957768.png

 

Or would it be better to have a list of people that are each assigned corresponding accounts/categories which match the form answer options?

 

tbrock_troc_3-1714702149745.png

 

Having typed this out and assuming Power Automate can pull in the necessary information to create a dynamic recipient list with either approach, I am slightly leaning toward the 2nd approach - but as I said, very open to recommendations.

 

Hope this helps and thanks again for your time and knowledge!

 




Hi @creativeopinion 

 

Thanks for your assistance here - as a short-term solution, I implemented the "compose" step version as in your video however that seems to only work with single-select questions. When it comes to the multi-select questions, it seems my time would be better spent working out the SP list solution than trying to learn how to use flow actions to parse parse the multi-select and map responses to email addresses.

 

My original issue appears to be an SP bug - user resubmitted with renamed versions of the 3 files that had failed and the flow ran successfully. Given this and your helpful video to create dynamic file naming with MS Forms attachments, I will accept your solution for this thread.

I will post a new thread that is more specific to my questions/needs in terms of using a SP list to create an email key to create dynamic recipient lists based on MS Form responses.

@tbrock_troc Sorry I missed your post before your last one. I would recommend setting up your list in the second way:

creativeopinion_0-1715306085525.png

This way it's easier to just delete an item if the person no longer exists and add/remove accounts. This list could potentially be used for other workflows you might want to create. 

 

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!

👉 Level up your Power Automate skills by checking out my tutorials on YouTube
👉 Tips and Tricks on TikTok and Instagram

Thank you once again!

I was leaning this way already buy had not considered how much easier it makes management to just remove the entire item (person).


Now to learn how to dynamically recall members from this list using the MS Form responses. 

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 (1,823)