Comments (7)
@sumurthy This is a question about whether Office Scripts supports getting data from other spreadsheets. @alison-mk We also may need to update docs for clarity either way?
from office-scripts-docs.
correct! Essentially trying to have one Excel be my single source of truth and have it update other Excel sheets. All the data is stored within the same SharePoint
from office-scripts-docs.
@mhusk, Currently, an Office Script runs on a single workbook at a time. You could use Power Automate to combine multiple scripts in different workbooks into a single flow. There's a series of PA-centric tutorials that teach the platform and how to both pass data to and return data from workbooks using scripts:
- Pass data to scripts in an automatically-run Power Automate flow
- Return data from a script to an automatically-run Power Automate flow
I'll pass this along to the product team to confirm this answer. Would you be willing to share your scenario? That way, we can consider how to best help solve your problems and improve Office Scripts.
from office-scripts-docs.
Hi @mhusk,
@sumurthy confirmed with me that Power Automate is currently needed scripts to work with multiple workbooks. He has a sample here: https://github.com/sumurthy/officescripts-projects/tree/main/Event%20Cross%20Reference
We are working on new APIs to link to an external workbook from a script and pull data from that workbook. Those should be available soon.
from office-scripts-docs.
@AlexJerabek I can share my scenario. I am not super well versed with Power Automate. I can share my use case
from office-scripts-docs.
@mhusk This might be a better discussion to have on Stack Overflow (with the "office-scripts" tag). There's actually a related question already there: https://stackoverflow.com/questions/65547948/read-data-from-another-excel-workbook-using-office-script
from office-scripts-docs.
@mhusk Thanks for the question. Please feel free to reach out to me suramam (at) microsoft . com for any details you may have on the scenario. Very curios to learn about it and verify that our upcoming API will support your scenario. Also sent a connect over LinkedIn. You can use either medium for next comm. Thanks!
from office-scripts-docs.
Related Issues (20)
- This action cannot be recorded and cannot copy as code. HOT 12
- Issue in the sample HOT 5
- Documentation should reflect that refresh is supported for Power BI
- Error: Line 27: Table addRows: This won't work because it would move cells in a table on your worksheet. HOT 8
- Contradicting wording in docs? HOT 7
- The ability to simply update tables in XLSM is often inquired about - is it possible? HOT 1
- 'Open in VSCode' doesn't work HOT 5
- Move rows across tables additional filters HOT 3
- Excel Office Scripting default parameters HOT 8
- Tutorial: Update a spreadsheet from a Power Automate flow need update. HOT 1
- "Run Script" action not available HOT 1
- Run Office Scripts in Excel from buttons page out of date HOT 1
- 'excelonlinebusiness' operation 'GetSingleScript' failed with status code 'BadRequest' "status": 400, "message": "Unable to parse script reference" HOT 3
- Script converting then corrupt XLSX? HOT 6
- Wrong title of sample code HOT 1
- No information if refreshAllDataConnections() is supposed to wait for refresh to finish before it continues. HOT 4
- The wrong chart type HOT 1
- Error after Run the code HOT 3
- Platfrom support is inconsistent with other documentations HOT 3
- Ability to Change Column Header Text in Pivot Table HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from office-scripts-docs.