Refresh excel pivots without opening file using Python Tool
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Just want to understand the use case here, is there a reason you can't use the pivot table options to refresh the data when the file is opened?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Luke_C Thanks for the question.
The excel file has many pivot tabs that are directly connected to the database. The user wants the data to be refreshed in the excel every time a stored proc is run. There are 100+ excel files and it would be cumbersome to open each file, refresh the connections and then send it in email. Any thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I can't speak to a python solution unfortunately. I would think that having the data upload when the user opens the file would be acceptable unless it takes a significant amount of time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Luke_C
Sorry for the delay in response.
The refresh needs to happen programtically because there is data dependency on these files downstream.
At the end of the process all the excel spreadsheets updated for that day are then emailed to the business users.
I have come up with a windows powershell script that works on my local alteryx desktop. However I am not sure how it will work on alteryx sever. Trying to figure it out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
That makes sense, I assume you're using the workflow events menu or run command tool? They should work on server but you may need to work with the admin to ensure the correct permissions are in place.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I use DCOM objects, called via PowerShell, to achieve such results.
