Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Cannot find SiteAssets folder in Workbook Library for Run Script Excel Connector

(0) ShareShare
ReportReport
Posted on by 2

Context: I'm trying to set up a flow using the "Run Script from SharePoint library" connector on a file stored in the SiteAssets/SitePages/ directory within a SharePoint site.

 

Issue: When I specify the SharePoint URL in the "Workbook Location" field (which the connector accepts), the SiteAssets directory does not appear in the "Workbook Library" dropdown and so I cannot select the relevant workbook (from "Workbook").

 Sharepoint SiteAssets.png

Steps Attempted: I've tried getting the ID from the URL for the folder the file is in - but by inputting this the connector gives an error saying the "Drive ID is not valid" (paraphrasing).

Is there anything else I can do?

  • mrd2023 Profile Picture
    2 on at
    Re: Cannot find SiteAssets folder in Workbook Library for Run Script Excel Connector

    Thanks Anna - I did attempt the solution linked above, but my knowledge of REST APIs and JSON responses isn't great so was unable to get the IDs. In truth it will be easier for me to move the file to a visible part of the Sharepoint directory.

    More importantly, the script I was hoping to run will currently not work, so I have had to pause development on this solution for now.

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Cannot find SiteAssets folder in Workbook Library for Run Script Excel Connector

    @mrd2023  you can try getting Drive Id of Site Assets library, to get the drive id, you can follow steps from this post https://powerusers.microsoft.com/t5/Building-Flows/Get-drive-id-for-Doc-Library-selection/m-p/856932/highlight/true#M120083

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1