FortiSOAR Discussions
Anonymous
Not applicable

Is it possible to query exchange emails via message-id using Microsoft Exchange?

Any clues here.

1 REPLY 1
spathan
Staff
Staff

Yes, `message_id` is searchable field in Exchange Email. It is possible to query emails via message_id in `Search Email` action of Exchange v4.2.1 connector. You can use message_id if you want to retrieve a specific message or you can use message_id__in to specify multiple message ids.

 

example:

If you used Basic Query:

{

"message_id": "<message__id>"

}

or

{

"message_id__in": ["<message__id1>", "<message__id1"]

}

If you used Advanced Query:

Q(message_id__in=['<id1>', '<id2>'])

 

Note: Any version prior to 4.2.1 does not support advanced query.