question

ReshmiSankaran-6993 avatar image
0 Votes"
ReshmiSankaran-6993 asked BogdanW-6490 commented

Graph API to download message trace

Is there an API to get message trace of the organization?
I am able to download the message trace from Exchange admin center but couldn't find an API for that.

microsoft-graph-mail
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How do you log in (programmatically) to get message trace?
Is there any code sample for this, preferably in .net?
I can download trace if I use the link provided below (i.e. "https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace")
but I have to log in with email/password.
This works, but if I try to authenticate programmatically I keep getting 401 error.

0 Votes 0 ·

The endpoint still uses basic Authentication (which it really shouldn't be in this day and age). If you having problem with code I would suggest you create you own question and post the code you trying to use in that question.

0 Votes 0 ·

Yes, I figured it out (finally) that this is basic authentication.

0 Votes 0 ·
GlenScales-6756 avatar image
0 Votes"
GlenScales-6756 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AdamWylie-6338 avatar image
0 Votes"
AdamWylie-6338 answered BogdanW-6490 commented

Hi guys, i also need to use the tracing api
it works fine for string filters (e.g. SenderAddress)

but any datetime (e.g. StartDate EndDate Received) it throws a HTTP 500 in the tenant i am working with.

$filter=StartDate eq datetime'2021-06-20T01:00:00' and EndDate eq datetime'2021-07-20T00:00:00'

Is anyone else seeing this?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

How do you log in (programmatically) to get message trace?
Is there any code sample for this, preferably in .net?
I can download trace if I use the link provided below (i.e. "https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace")
but I have to log in with email/password.
This works, but if I try to authenticate programmatically I keep getting 401 error.

0 Votes 0 ·