cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

powershell for list of power bi report to write output to sharepoint location - possible?

Hi,

 

Have powershell script which currently writes output to .csv on local drive and uses Get-PowerBIReport cmdlet amongst others

 

Anyone know how to instead to write to a sharepoint location instead.

 

We currently have to save this manullay to sharepoint location and then run power bi report.

 

Would be better if we coudl write directly to sharepoint location in powershell.

 

Thanks 

3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

Re: powershell for list of power bi report to write output to sharepoint location - possible?

Synchronize your Sharepoint Document library with a local folder on your PC. Then point the Powershell script to that local folder.  OneDrive will do the rest.

Highlighted
Community Support
Community Support

Re: powershell for list of power bi report to write output to sharepoint location - possible?

Hi @po,

I'd like to suggest you combine below function scripts about upload files to SharePoint to your codes and add remove the local files after Finished the operations.

Upload on-premises content to SharePoint using PowerShell cmdlets 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Post Prodigy
Post Prodigy

Re: powershell for list of power bi report to write output to sharepoint location - possible?

Hi,

 

Thanks fro replies.

 

Not sure how woudl do this - do you have firther info 

"Synchronize your Sharepoint Document library with a local folder on your PC. Then point the Powershell script to that local folder.  OneDrive will do the rest."

 

Will have a read thorugh the document.

 

Thanks

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!