Complete the code to share a Power BI report with your team.
PowerBIService.shareReport(reportId, [1]);You need to specify the emailAddress of the person you want to share the report with.
Complete the code to enable collaboration by adding a user to a workspace.
workspace.addUser([1], 'Member');
To add a user for collaboration, you must provide their userEmail.
Fix the error in the code to allow report sharing with edit permissions.
PowerBIService.shareReport(reportId, userEmail, [1]);Setting the third parameter to true grants edit permissions for collaboration.
Fill both blanks to create a dashboard link and set it to allow sharing.
dashboard = PowerBIService.createDashboard([1]); dashboard.setSharing([2]);
You name the dashboard 'Sales Overview' and enable sharing by setting true.
Fill all three blanks to grant a user access, assign role, and notify them.
workspace.addUser([1], [2]); PowerBIService.notifyUser([1], [3]);
You add the userEmail as a 'Member' and notify them with true to send the notification.
