/// <summary> /// Updates the datasources of the specified paginated report from the /// specified workspace. /// </summary> /// <remarks> /// <br/>**Important**:<ul><li>The original datasource and /// the new datasource must have the exact same /// schema.</li></ul>**Required scope**: /// Reports.ReadWrite.All<br/>To set the permissions scope, see [Register /// an /// app](https://docs.microsoft.com/power-bi/developer/register-app).<h2>Restrictions</h2><ul><li>This /// operation is only supported for the dataset /// owner</li><li>Update datasources supports only paginated /// reports</li></ul> /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The workspace id /// </param> /// <param name='reportId'> /// The report id /// </param> /// <param name='updateRdlDatasourcesRequest'> /// </param> public static void UpdateDatasources(this IReportsOperations operations, System.Guid groupId, System.Guid reportId, UpdateRdlDatasourcesRequest updateRdlDatasourcesRequest) { operations.UpdateDatasourcesAsync(groupId, reportId, updateRdlDatasourcesRequest).GetAwaiter().GetResult(); }