Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

how to synchronize slices when using PowerBIClient.Reports.ExportToFile to export PDF

Hi there -

I have a generic question about using PowerBIClient.Reports to export a report to PDF.    We are using Embedded for Customer model to provide a group of users to access the report.  The questions  is how to synchronize the slices users selected from the web page with the Power BI service when calling ExportToFile fuction.  For example, User A selected Midwest, and User B selected Northeast as they are seeing from each individual browsers, when calling ExportToFile, we are expecting to get two different PDFs reflecting different slice selections.  How this can be done?   My initial understanding is that an access token pregenerentated for each user would guarrantee this, but I found that ExportToFile function does not take any pregenerated token, which means the PDF expored are based on the same report saved in workspace, i.e. all users would get the same PDF no mater how the slices are selected

Thank you very much for any help one this.embedded.PNG

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please refer to this thread:

https://community.powerbi.com/t5/Developer/Export-to-file-Power-BI-Report-with-Filters-Parameters/td-p/998370 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.