/// <summary> /// Clones the specified tile from **"My Workspace"**. /// </summary> /// <remarks> /// <br/>If target report id and target dataset are not specified, the /// following can occur:<li>When a tile clone is performed within the /// same workspace, the report and dataset links will be cloned from the source /// tile.</li><li>When cloning a tile within a different workspace, /// report and dataset links will be rested, and the tile will be /// broken.</li><br/>**Note:** When a tile is cloned to another /// workspace and bound to another report and dataset, it is cloned as is with /// its underlying query containing the original report /// filters.<br/><br/>**Required scope**: Dashboard.ReadWrite.All /// <br/>To set the permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='dashboardId'> /// The dashboard id /// </param> /// <param name='tileId'> /// The tile id /// </param> /// <param name='requestParameters'> /// Clone tile parameters /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Tile> CloneTileAsync(this IDashboardsOperations operations, System.Guid dashboardId, System.Guid tileId, CloneTileRequest requestParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CloneTileWithHttpMessagesAsync(dashboardId, tileId, requestParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }