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 / Get file content (Shar...
Power Automate
Unanswered

Get file content (Sharepoint) File path which include variable always throw bad request

(0) ShareShare
ReportReport
Posted on by 14

Hi all,

 

I have problem where my Get file content (Sharepoint) file path which include variable keep throwing bad request. How can I fix that? Anyone can help? Thank you in advance.

qpowerautomate_0-1704365906262.png

 




Categories:
  • Anchov Profile Picture
    1,986 on at

    The first thing I would try is to remove the 'single quotes' surrounding your file name:

    Anchov_0-1704401242689.png

    The action you are using expects the file identifier to be URI encoded and is best used if passing the identifier from an upstream action (i.e. like a Get File properties action).

    Anchov_4-1704401540385.pngAnchov_1-1704401422007.png

     

    If you need to construct the path like you are doing, you may have better luck using the 'Get file content using path' action.  Which is almost identical, but doesn't need URI Encoding

    Anchov_2-1704401468452.pngAnchov_3-1704401513671.png


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

     

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
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard