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 Apps / Seeking Guidance on Se...
Power Apps
Unanswered

Seeking Guidance on Securely Refreshing and Notifying for a Locked .xlsm File on SharePoint

(0) ShareShare
ReportReport
Posted on by 19

Hello everyone

We are working with a locked .xlsm file on SharePoint that contains Power Query. Users can refresh data via a button but cannot view or edit the code. We want to automate the refresh using Power Automate on a schedule, send users a notification once the data updates, and ensure the Power Query code remains protected. All related files are stored in the same SharePoint folder. We need guidance on:


     
  1. Whether Power Automate can refresh a locked .xlsm file and notify users,

  2. How to keep the Power Query code secure,

  3. Best practices for securely automating Power Query workflows on SharePoint.
Any guidance, suggestions, or examples from your experience would be greatly appreciated. Thank you in advance for your help!
 
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,541 Most Valuable Professional on at
    Responding as no one else has - the below is from a couple of queries I did and may be useful - suggests you move the query out of Excel into a Power BI Data Flow as below

    Go to Power BI Service
    • Workspace → New → Dataflow
    • Choose SharePoint Folder (or whatever source you use)
    • Recreate your Power Query logic here (copy code from Excel directly)
    • Save the dataflow
    In the dataflow:
    • Set Scheduled refresh and frequency
    • Configure credentials
    • Create a new Excel file (.xlsx) and add to the Dataflow
    • Load tables
    In SharePoint
    • Grant users appropriate access
    • Disable Download and Open in desktop 
    It seems logical to me, but I have not attempted it.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • lbendlin Profile Picture
    8,547 Super User 2025 Season 2 on at
    It is trivial to crack the password of the XLSM file.  What is so valuable in your Power Query code? Hard coded credentials with too much scope?

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 Apps

#1
Kalathiya Profile Picture

Kalathiya 422

#2
WarrenBelz Profile Picture

WarrenBelz 380 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 325 Super User 2025 Season 2

Last 30 days Overall leaderboard