Paintitblack3k
Paintitblack3k

Reputation: 75

ExcelScript (Online): Get current file name

I'm trying to automate with Office-Scripts and Microsoft Power Automate (former Flow) some process. I simply try to get the current file name of each excel file, but I am failing the whole time.

How do I get the current filename? function main(workbook: ExcelScript.Workbook) {

  console.log(ExcelScript.Workbook.getName());
    
}

The documetion is not clear to me at this point -> https://learn.microsoft.com/en-us/javascript/api/office-scripts/excelscript/excelscript.workbook?view=office-scripts

Upvotes: 0

Views: 1880

Answers (1)

Paintitblack3k
Paintitblack3k

Reputation: 75

Got it. The solution is console.log(Workbook.getName()); – Paintitblack3k just now

Upvotes: 1

Related Questions