i do not have access to an exchange server account, but there are many examples in a google search

i found https://answers.microsoft.com/en-us/...b81c9ecd1?db=5 which has a function that should be able to do what you want