Forum Discussion

ShawnLien1129's avatar
ShawnLien1129
Brass Contributor
Dec 12, 2022

About subscription teams channel to get change notifications

I subscribed to teams channel through the Graph API: Create subscription 

In the normal processing case below:

I can correctly parse the change notification chat message content by the following code.

But when the following error occurs in the program, i get chatMessage.EventDetail is empty.

 

When this error message appears, how should I get the chatMessage.EventDetail content correctly ?
Thanks.

  • Nivedipa-MSFT's avatar
    Nivedipa-MSFT
    Dec 12, 2022

    ShawnLien1129 - The call recording was not uploaded. It's getting error, so the event was not completed. Thats why the eventDetails are empty.
    If the recording was uploaded in Teams succesfully, then the event was completed and will get the details of an event.

    There is no way to get the chatMessage.EventDetails when the recording was failed to upload.

    Thanks,
    Nivedipa
    -------------------------------------------------------------------------
    If the response is helpful, please click Mark as Best Response and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

      • Nivedipa-MSFT's avatar
        Nivedipa-MSFT
        Icon for Microsoft rankMicrosoft

        ShawnLien1129 - The call recording was not uploaded. It's getting error, so the event was not completed. Thats why the eventDetails are empty.
        If the recording was uploaded in Teams succesfully, then the event was completed and will get the details of an event.

        There is no way to get the chatMessage.EventDetails when the recording was failed to upload.

        Thanks,
        Nivedipa
        -------------------------------------------------------------------------
        If the response is helpful, please click Mark as Best Response and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

Resources