Error: RequestBodyRead The property 'name' does not exist on type 'microsoft.graph.recipient'. Make sure to only use property names that are defined by the type or mark the type as open type

Manojcargo 0 Reputation points
2023-09-11T12:43:23.7033333+00:00

I am going through the "Build Python apps with Microsoft Graph" and developed the code accordingly. But getting the below error when i select option 3. I am able to get the tokens which is option one.

Error:

RequestBodyRead The property 'name' does not exist on type 'microsoft.graph.recipient'. Make sure to only use property names that are defined by the type or mark the type as open type.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sourabh Gupta 800 Reputation points Microsoft External Staff
    2023-12-03T09:14:44.7933333+00:00

    HI @Manojcargo

    Thanks for reaching out.

    Based upon the error message,I am assuming that you are trying to set the name property of an object of type "microsoft.graph.recipient".

    Based upon the documentation here https://learn.microsoft.com/en-us/graph/api/resources/recipient?view=graph-rest-1.0.

    This type contains only one property called emailAddress of type EmailAddress, which in turn contains a name property.

    Refer to the document here.

    https://learn.microsoft.com/en-us/graph/api/resources/emailaddress?view=graph-rest-1.0

    Hope this helps!

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.