/// <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> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateDatasourcesAsync(this IReportsOperations operations, System.Guid groupId, System.Guid reportId, UpdateRdlDatasourcesRequest updateRdlDatasourcesRequest, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateDatasourcesInGroupWithHttpMessagesAsync(groupId, reportId, updateRdlDatasourcesRequest, null, cancellationToken).ConfigureAwait(false)).Dispose(); }