Python Refresh Sheet or Workbook - OneStream Excel Add In
With power query in excel, you can connect to a database one time with your credential then they are stored in the document. If the connection is refreshed on another computer, credentials are required to refresh; however if the connection is refreshed for the latest data on your own computer credentials are not required. This is a great set up for overlaying python scripts to refresh the data in automated fashion leveraging task scheduler, see below for example script with just a simple power query connection:
import win32com.client
import time xl = win32com.client.DispatchEx("Excel.Application")
wb = xl.workbooks.open(fileName)
xl.Visible = True
wb.RefreshAll()
wb.Save()
xl.Quit()
Is anyone aware of a similar type set up with the OneStream excel add in. As far as I can see, you have to log in your credential each time you open excel and hit the refresh sheet button each time you want updated data. Most times this works just fine, but there are certain cases where I want to automate the refresh wiht a python script (or other method?) for various reasons.
See if anyone has thoughts here....