Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microsoft.Graph.User deprecated "as of 2024-07/PrivatePreview:copilotExportAPI" #680

Closed
jamesgurung opened this issue Sep 5, 2024 · 1 comment
Labels

Comments

@jamesgurung
Copy link

I am using the Microsoft Graph Beta SDK for .NET. However, this issue seems to be caused by commit microsoftgraph/msgraph-beta-sdk-dotnet@7c5cfba which was generated from the metadata.

This code should send an email:

<PackageReference Include="Microsoft.Graph.Beta" Version="5.79.0-preview" />
var client = new GraphServiceClient(credential, scopes);
await client.Me.SendMail.PostAsync(new SendMailPostRequestBody { Message = message });

It has started showing deprecation warnings:

'MeRequestBuilder.SendMail' is obsolete: ' as of 2024-07/PrivatePreview:copilotExportAPI'

'SendMailRequestBuilder.PostAsync(SendMailPostRequestBody, Action<RequestConfiguration>?, CancellationToken)' is obsolete: ' as of 2024-07/PrivatePreview:copilotExportAPI'

This appears to come from the metadata:

<Annotations Target="microsoft.graph.user">
  <Annotation Term="Org.OData.Capabilities.V1.ChangeTracking">
    <Record>
      <PropertyValue Property="Supported" Bool="true"/>
    </Record>
  </Annotation>
  <Annotation Term="Org.OData.Core.V1.Revisions">
    <Collection>
      <Record>
        <PropertyValue Property="Date" Date="2024-07-02"/>
        <PropertyValue Property="Kind">
          <EnumMember>Org.OData.Core.V1.RevisionKind/Deprecated</EnumMember>
        </PropertyValue>
        <PropertyValue Property="RemovalDate" Date="2025-07-02"/>
        <PropertyValue Property="Version" String="2024-07/PrivatePreview:copilotExportAPI"/>
      </Record>
    </Collection>
  </Annotation>
</Annotations>

However, I cannot see this deprecation listed in the Microsoft Graph changelog.

@jamesgurung
Copy link
Author

This warning no longer appears in the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant