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 / issue with run script ...
Power Automate
Unanswered

issue with run script in power automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

Im trying to display only filtered data table as ouput from excel report. im sending the script parameters to add as a dynamic filter to the script.

 

i have written office scripts to get the filtered data: 

function main(workbook: ExcelScript.WorkbookFilterName:string) {
  let table1 = workbook.getTable("Table1");
  // Apply checked items filter on table Table1 column User Manager Name
  table1.getColumnByName("User Manager Name")
    .getFilter()
    .applyValuesFilter(['FilterName']);

 

  let Sheet = workbook.getActiveWorksheet();
  let output =Sheet.getUsedRange().getVisibleView();

 

console.log(output);
when i use this script to run in power automate, it shows error as below:
We were unable to run the script. Please try again.
Runtime error: Line 11: {}
clientRequestId: b158e5b1-ab32-4189-be04-b49284ce9eb0
}
Categories:
I have the same question (0)
  • Javier Gallego Profile Picture
    Microsoft Employee on at

    Hi shalakashinde

     

    I tried to search the error and I didn't find anything.

    Could you share with us a screenshot where you are having the error?

     

    Thanks,

    Javier

  • Yutao Huang Profile Picture
    Microsoft Employee on at

    @Anonymous 

     

    On this line .applyValuesFilter(['FilterName']), please remove the quotes around FilterName.

     

    Hope this helps!

    Yutao

     

     

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 997

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 642

Last 30 days Overall leaderboard