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 / SharePoint Create Docu...
Power Automate
Answered

SharePoint Create Document Environment variables for folder path

(0) ShareShare
ReportReport
Posted on by 370

I have a Flow that copies a Word doc from DataVerse into SharePoint, and creates the file in SharePoint using the Create File action., which requires a Site address and a folder path.

 

I need the folder path to be in an env variable, but when it runs the action it throws a not found error, as it is using a GUID and not the folder path.

 

This works with a folder path selected from the folder icon.

mjburley_0-1648825957551.png

Setting up an env variable thus:

 

mjburley_1-1648826078736.png

 

and using this in the Folder Path results in an error. The env var in a compose shows as a GUID, and in the create doc action the error is:

 

"body":{"status":400,"message":"Root folder is not found.\r\nclientRequestId: d7975b32-835a-4a91-8414-ec3e36f3c21f\r\nserviceRequestId: d7975b32-835a-4a91-8414-ec3e36f3c21f"}}

 

I've tried to use the GUID in other actions (like get folder metadata) but the same issue.

 

Am I missing something obvious as usual!

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @mjburley ,

     

    The Folder path expects a string value.

    vxiaochenmsft_0-1649128769722.png

    vxiaochenmsft_1-1649128782274.png

     

    So I think you could create a Text environment variable instead of a sp list environment variable.

     

    Best Regards,

    Wearsky

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard