Hello everyone,
i try the following.
A workflow that every morning open my excel file, refreshed it, saves and close again.
What would the process look like? 🤗
Thank you in advance
Hi,
Are you working in an Excel Online file?
In that case, you can have a Flow run every day "Reoccurence" and have an Excel Script refresh the data.
If you're unfamiliar with this or unsure how to do so, let me know, and I'll show you.
Regards,
Remco
Hi @RemcoV16 ,
yes. Please show me how i can update this. I thank you very much. 🙂
Regards,
SQL-Power
Hi,
First ensure that your Excel file is stored in an online location (Like Drive or SharePoint). Not sure how it works with an offline Excel file. Then, I would build something like this:
The Flow triggers daily at 8:00 AM now and runs a created script (similar to Excel Macro's).
You can either record the script yourself, or paste the code below in a new script.
Both can be done via the "Automate" Tab in Excel (see highlighted below (even though in Dutch)):
After refreshing the data, the Flow will send an email to the email-address filled in.
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up.
Regards,
Remco
Thank for your solution but i have a little problem.
i cant see my script although i creates one.
Can you see your script within Excel Online? Otherwise it might not have saved correctly.
If you have added the script with your Flow open, be sure to save the Flow, refresh the page and try again.
i dont know why i cant see my script ... 😕 i already saved an close the excel file
If you open your Excel online, do you see the script?
If it does not show here, your Flow won't find it either.
Thank you very much for your efforts. I managed to create.
But unfortunately I am still faced with one of the following questions / problems.
I created the workflow and I want it to run every minute.
After the workflow was successfully completed, I opened the Excel list, which is saved on my desktop, and the data has not been updated: /
Do I have to make further settings in the Excel list?
Hi,
I'm unsure whether you are able to do this with a file that is stored on your desktop.
Could you try saving the Flow in SharePoint or Drive, and see if the file gets updated that way?
the code isn't working
and the excel file is in the onedrive 🙂
I am trying to accomplish the same thing. I have been working on this for days.
Here is what we have.
An excel file saved to SharePoint library:
This works fine on excel desktop - manual Refresh All works perfect, there is a setting to refresh on file open and every 30 minutes - those also work fine on desktop.
What we are trying to do is AUTOMATE the refresh all, then send the resulting refreshed excel file attached to an email. ( the flow to send the scheduled email works perfectly!)
HOWEVER; The data is NOT refreshed when fetched by the flow.
Any help would be greatly approciated.
Hi,
Hello:
We have the same issue. The online script will not run the refresh. I even tried adding a delay, then close> still no refresh.
As an alternative I attempted to use 'Desktop Power Automate' - and it worked, the excel file (with power queries) on sharepoint > opened> refreshed> waited> and closed.
BUT !!!
That did not solve our requirement - only the first step.
Step 2 - need to schedule a daily email with the file attached after refresh.
To call desktop flow from online is a 'premium' license - which we don't have.
SO.......
online PA - wont refresh file or open file do to query
desktop - cant run schedule email
online script - cant send email
ANY IDEAS?
Hello everyone.
I have been working on this also for some time and found a solution that is working for me.
In my case I have to refresh the data in one worksheet with the data in another (I haven't tried this for external data sources).
What I did was to add to the script some hide/unhide worksheet orders, leaving the document as before. However, the document refreshed. Something like this (for my document):
Hope this also works for you.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
14 | |
13 | |
10 | |
9 | |
9 |
User | Count |
---|---|
30 | |
21 | |
15 | |
12 | |
12 |