hello everyone.
I am trying to create a script that extracts the chart (in jpg) from excel in sheet 2.
I need this to create a flow via power automate to populate a word document in sharepoint with the extracted chart.
I'm currently using this script but without results:
Thanks
I am trying to create a script that extracts the chart (in jpg) from excel in sheet 2.
I need this to create a flow via power automate to populate a word document in sharepoint with the extracted chart.
I'm currently using this script but without results:
Code:
// Get chart 1 from Sheet2.
const chart_1 = workbook.getWorksheet('Sheet2’).getChart(‘Chart2’);
const chartImage = chart_1.getImage()
Thanks