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

V5 Create Team doesn't return a result #1798

Closed
idealser opened this issue Mar 31, 2023 · 1 comment
Closed

V5 Create Team doesn't return a result #1798

idealser opened this issue Mar 31, 2023 · 1 comment

Comments

@idealser
Copy link
Contributor

idealser commented Mar 31, 2023

Create Team is an async operation and it won't return any result other than url of the operation. In V5 GraphClient.Teams.PostAsync has a Team object as a return result, but at runtime it actually returns you null. This leads to total confusion. I guess it shouldn't return you anything if you can't rely on the result like the same way it's implemented with Clone.

Instead of this it's better to drop the return result and add to the documentation sample on how to corectly get the execution result object.

@andrueastman
Copy link
Member

Thanks for raising this @idealser

As this is dependent on the generated metadata, we'll close this as a duplicate of #1366 as this is dependent on microsoftgraph/msgraph-sdk-design#83

@ghost ghost locked as resolved and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants