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

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

    Anyone can help?

  • Community Power Platform Member Profile Picture
    on at

    Any update please from Microsoft staff?

  • Community Power Platform Member Profile Picture
    on at

    +1

  • Community Power Platform Member Profile Picture
    on at

    +1

  • Community Power Platform Member Profile Picture
    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
    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

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