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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard