Skip to main content

Notifications

Community site session details

Community site session details

Session Id : QIukNgUYK7qGAqY3GOtnom
Power Automate - General Discussion
Unanswered

How can make the "Create File" location variable/dependent upon whomever triggers the flow?

Like (0) ShareShare
ReportReport
Posted on 24 Feb 2025 15:15:21 by
I set-up a workflow that triggers when a Microsoft Forms response is submitted. Once a response is submitted, the workflow populates a WORD template with content from the form response and then saves the "Create File" to my OneDrive. I intend for this workflow to be triggered by not only me, but by 20+ other people too. The issue is, I don't want their "Create File" stored on my OneDrive; I want it stored on theirs, respectively. So, how can I make the folder path of the "Create File" variable/dependent on the email address of the one who submits the Form response? Ex. If I submit the form, the file should be stored on my OneDrive. If you submit the form, the file should be stored on your OneDrive.
 
Categories:
  • David_MA Profile Picture
    10,430 Super User 2025 Season 1 on 24 Feb 2025 at 18:26:26
    How can make the "Create File" location variable/dependent upon whomever triggers the flow?
    Based on your flow image, this flow cannot be triggered by anyone. You are using the trigger When a new response is submitted. If you want people trigger it and then save it to their OneDrive, you will need to change your flow to what @creativeopinion shows below with a manually triggered flow.
  • creativeopinion Profile Picture
    10,378 Super User 2025 Season 1 on 24 Feb 2025 at 16:12:35
    How can make the "Create File" location variable/dependent upon whomever triggers the flow?
     
    Check the run only users setting in your flow.
    First, you'll need to share your flow with the 20+ people. Then, ensure that the OneDrive for business is set to Provided by run-only user (which is the default).
    I created this flow with one account and shared it with Jessica. For testing purposes I added a Get my profile (V2) action and a Compose action to output the email address of the user who runs the flow.
     
    I ran the flow from Jessica's account.
     
    As you can see, the test file was created in Jessica's OneDrive.
     
    ----
     
    It looks like your flow can be restructured a bit to be more efficient, however, it's hard to offer any specific recommendations with the screenshot you've shared. Toggle off the New Designer and click each action to expand it. Upload a screenshot of your flow in edit mode.
     
    In the meantime, you might be interested in these YT Tutorials:
     
    In this Microsoft Power Automate tutorial, I’ll show you how to get your Microsoft Form responses into SharePoint. I’ll cover how to build a Microsoft form with conditional fields by using branching. You’ll learn how to format your multiple choice responses for a SharePoint multi-choice column as well as converting it to text. I’ll also show you how to take a text response and convert it to a number with a switch action and with an expression. 
    After adding the response to SharePoint, we’ll send the user an email confirmation with all the details of their form submission.
    At the end of the video I’ll show you a few tips and tricks on working with a SharePoint list.
    IN THIS VIDEO:
    âś“ How to get a Microsoft Form Response into SharePoint
    âś“ How to get a Microsoft Form ID
    âś“ How to get a Microsoft Form response
    âś“ How to Build a Microsoft Form with Conditional Fields
    âś“ How to used Branching in Microsoft Forms
    âś“ How to format Microsoft Form multiple choice responses for a SharePoint multi-choice column
    âś“ How to parse a Microsoft Form multiple choice response as string of text
    âś“ How to convert a text response to a number
    âś“ How to use the Switch action
    âś“ How to create a custom email confirmation for a Microsoft Form submission
    âś“ How to Create a Custom View in a SharePoint list
    âś“ How to use the Compose Action
    âś“ How to write Power Automate Expressions
     
    -----
     
    Are you using the Switch action in your flow? While it seems like a simple way to handle multiple conditions, it can quickly become inefficient and difficult to manage.
     
    Here’s why:
    ❌ You can’t use dynamic content in the Equals field.
    ❌ You have to manually recreate the same actions for each case.
    ❌ Any updates require you to edit every single case individually.
     
    This results in a flow that’s repetitive, hard to scale, and a nightmare to maintain.
    In this tutorial, I’ll show you how to replace redundant Switch actions with a **Dynamic Reference Key**—a simple but powerful way to streamline your flows. Instead of repeating the same actions over and over, you’ll create a **lookup-style structure** that makes your flows more efficient, scalable, and easier to update.
     
    IN THIS VIDEO:

    âś“ Why the Switch action is inefficient and what to use instead
    âś“ What is a Dynamic Reference Key
    âś“ Creating a custom look up in Power Automate
    âś“ Using a Dynamic Reference Key instead of writing an expression with nested if() functions
    âś“ How to use a Dynamic Reference Key to reduce actions in your flow
    âś“ How to use a Dynamic Reference Key to route emails to different recipients based on a MS Form Selection
    âś“ How to reduce redundancies in your flow by using a single Send an Email (V2) action instead of multiple instances
    ✓ How to use a Dynamic Reference Key to send email notifications 90, 60 and 30 days from today’s date

     
    -----
     
    How to Add Microsoft Form File Uploads to a SharePoint List Item
    In this Microsoft Power Automate Tutorial I’m going to cover how to add file uploads to a SharePoint list item. First, I’ll show you how to get the file name and content from the File Uploads from your Microsoft Form, then I’ll show you how to add those files to a SharePoint item. 

    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 from Multiple File Upload Questions
    ✓ How to Handle MS Form Response When a File Isn’t Uploaded
    âś“ How to Attach an MS Form Single File Upload to a SharePoint List Item
    âś“ How to Attach Multiple MS Form File Uploads to a SharePoint List Item
    âś“ How to Attach MS Form File Uploads to an Email
     
    How to Get Microsoft Form File Uploads Attached to an Email 📧
    Are you stumped when it comes to handling a response without any file uploads?

    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!

    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
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,520 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,767 Most Valuable Professional

Leaderboard