diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/UniqueIdHelper.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/UniqueIdHelper.cs index f98b623a8b257..afcb49b8ffbe9 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/UniqueIdHelper.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/samples/DigitalTwinsClientSample/UniqueIdHelper.cs @@ -23,7 +23,7 @@ internal static async Task GetUniqueTwinIdAsync(string baseName, Digital internal static async Task GetUniqueJobIdAsync(string baseName, DigitalTwinsClient client) { - return await GetUniqueIdAsync(baseName, (jobId) => client.GetImportJobsByIdAsync(jobId)); + return await GetUniqueIdAsync(baseName, (jobId) => client.GetImportJobAsync(jobId)); } private static async Task GetUniqueIdAsync(string baseName, Func getResource)