web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Variable File names fo...
Power Automate
Unanswered

Variable File names for excel: 401 Error Message

(0) ShareShare
ReportReport
Posted on by 4

We have a Sharpoint form, that I split into different sheets on an Excel file.

Setting up the flow for this is quite time consuming, and the only data that changes is the filename.

Cornerstone_2-1714406791432.png

The compose action takes the Uri from the HTTP request, and converts it to a variable string.

 

I tried setting up the file name as a variable, but I get a 401 unauthorised error message when I run the test.

Cornerstone_0-1714406709505.png

 

Is this the correct way to do this? what am I missing?

Categories:
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Cornerstone 

     

    What you are trying to do with Get request action - could you explain more around that ?

     

    Also share what you are trying to do here as it is quite confusing 

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • Cornerstone Profile Picture
    4 on at

    Steps 1 & 2 work (trigger 1 = When a form is submitted, Step 2 = Get results from form)

    I then split the results from the form into separate sheets, based on the results from the first question.

    The First question is a radio question with 16 results.

     

    The whole process works as intended, but we use this per client, so for each new client I have to copy and then change the spreadsheet the results point to.

    As there is 16 results on question 1, this is very time consuming to repoint every result, when the only thing that changes is the location of the spreadsheet.

     

    I was hoping to make the Spreadsheet a variable so I change it once using the 'compose' function, then the "export to excel" location pointing to my 'compose' function, so I only have to make 1 change.

  • Cornerstone Profile Picture
    4 on at

    Is anyone able to help with this?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard