dubravcik / pbixrefresher-python

Refresh Power BI reports programmatically for free
MIT License
122 stars 54 forks source link

Cant publish to workspace other than default workspace #12

Open ekegren opened 6 years ago

ekegren commented 6 years ago

Hi,

When I add a workspace param it still publishes the report to My Default Workspace - I see some errors in the log that it cannot find the workspace I am requesting - even though I can see it in the list?

LevonPython commented 4 years ago

You can try this way, it is quite simple. https://github.com/LevonPython/PbiRefresher

virt12 commented 2 years ago

You can try this way, it is quite simple. https://github.com/LevonPython/PbiRefresher

Can we publish to selected workspace, not only My workspace?

LevonYeghiazaryanEmbodied commented 2 years ago

Absolutely, script is open source, you can modify to your workspace.

virt12 commented 2 years ago

Absolutely, script is open source, you can modify to your workspace.

Ok I have tried to select other workspace not My workspace as default. As example list of workspaces: image I tried to use win.child_window(title="FAVS_Internal", control_type="DataItem").select("FAVS_Internal") in publish part but it didn't work, I am just getting this output: {'title': 'FAVS_Internal', 'control_type': 'DataItem', 'top_level_only': False, 'parent': <uia_element_info.UIAElementInfo - 'Anvy - Power BI Desktop', WindowsForms10.Window.8.app.0.2ea1a2_r8_ad1, 4927826>, 'backend': 'uia'}. So I think that code has a bug and can't choose another workspace. Maybe possible somehow to fix it?