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 / Unable to run a script...
Power Automate
Unanswered

Unable to run a script via Schedule a script to run in Excel when trying to use refreshAllLinksToLinkedWorkbooks Method in Web Excel

(3) ShareShare
ReportReport
Posted on by Microsoft Employee

Issue: I am trying to implement refreshAllLinksToLinkedWorkbooks() method in a script and using Power Automate to run the script I am having the following error

 

Power Automate - Schedule a script to run in Excel

eckomax87_0-1645413146699.png

Error

 

 

 {
 "message": "We were unable to run the script. Please try again.\nOffice JS error: Line 3: Workbook refreshAllLinksToLinkedWorkbooks: The operation failed because the user has not granted permission to refresh external workbook links.\r\nclientRequestId: 89dc046d-e456-4a68-9af6-bc9f529dcf6c",
 "logs": []
 }

 

 

The script I have for Web Excel

 

 

 function main(workbook: ExcelScript.Workbook) {
 // Refresh all workbooklinks
 workbook.refreshAllLinksToLinkedWorkbooks();
 }

 

 

I believe it is related to Web Excel does not have the feature to Enable All Data Types and it keep showing the below notification when I open the Web Excel Spreadsheet

eckomax87_1-1645413217127.png

Where as my Desktop PC have the below settings and no pop-up error

eckomax87_2-1645413235834.png

This looks like a bug. Could someone or Microsoft Dev team advise please? Thank you

Joe

Categories:
I have the same question (1)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Anyone can help?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Any update please from Microsoft staff?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    +1

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    +1

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Anyone can help???

  • SamuelBeaudoin Profile Picture
    6 on at

    same issue here

  • sbayford Profile Picture
    5 on at

    +1

  • ruak Profile Picture
    2 on at

    I have same issue

  • hey24 Profile Picture
    3 on at

    same issue, will update if i can figure out a solution

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Having the same issue, these guides on youtube make it seem so easy.
    Seems this isn't something we will ever find the answer to.

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard