Hauften
Hauften

Reputation: 3

How do I format my Graph request to post multiple messages in Teams?

I would like to post several messages with one Graph request only. My request looks like this :

{
    "body": {
        "content": "Hello World"
    }
}

I just want to post a lot of different messages. I don't know if I should do a table or something like that.

Thanks.

Upvotes: 0

Views: 195

Answers (1)

Hilton Giesenow
Hilton Giesenow

Reputation: 10854

Of course each message itself needs to be an individual request, but it's possible to make multiple requests in a single call, using Batching. Please see here for more information: https://learn.microsoft.com/en-us/graph/sdks/batch-requests?tabs=csharp

Upvotes: 1

Related Questions