How to not send the mail to the group mailbox in conversation replies?

Bikram Jeet Singh 25 Reputation points
2025-02-20T12:26:04.5566667+00:00

Hello,

I am building an application in which using Graph API.

I was able to create a conversation using this code, and it is not sending any mail.

    const newConversation = {
      topic: `Comments on task "${task.title}"`,
      threads: [{
        posts: [
          {
            body: {
              contentType: "html",
              content
            },
            newParticipants: []
          },
        ],
        ccRecipients: [],
        toRecipients: [],
      }]
    };

But while replying to the same conversation, using this code:

const reply = {
      post: {
        body: {
          contentType: 'html',
          content
        },
        newParticipants: []
      },
    };

    return await createResource(this.graphClient, `/groups/${groupId}/conversations/${conversationThreadId}/threads/${conversationThreadId}/reply`, reply, "create a reply");

It is creating a reply to the conversation but also sending the mail to the group mailbox

mailbox

Is there any way I can stop those mails from sending to group mailbox or any other way.

Thank You.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,110 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akhil Nasalwai - MSFT 500 Reputation points Microsoft Vendor
    2025-02-20T17:47:06.7966667+00:00

    Hello Bikram Jeet Singh,

    Thank you for reaching out to Microsoft!

    It seems like you need to create a reply to a conversation without triggering email notifications to the group mailbox. Unfortunately, the Microsoft Graph API does not provide a built-in way to suppress email notifications for replies to conversations. We would recommend you submitting a request in the feedback portal mentioned below:

    Link: Feedback Portal

    Additionally, you can try the workaround which might help resolve the issue:

    Try modifying the group's settings to prevent sending emails for conversation replies. This is a global setting and will affect all conversations within the group.

    Instead of using the conversations endpoint, could you try using chat or channel endpoints within Microsoft Teams, which provides more granular control over notifications.

    Hope this helps.

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


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.