Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
4,668 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi All,
Our product has an issue supporting Multi-geo locations .
Current Behaviour is administrator account , Impersonate User account and delegated account should be in same geo location.
We are implementing X-AnchorMailBox to support Multi -geo locations.
We are using One Administartor mailbox, User and Delegated mailbox are of same tenant, not using group Information.
Can anyone please let me know if my changes are correct.
// Configure the ExchangeService with the access token
var service = new ExchangeService(ExchangeVersion.Exchange2007_SP1, timeZone);
service.Url = new Uri(" https://outlook.office365.com/EWS/Exchange.asmx");
service.Credentials = new OAuthCredentials(Token);
service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, mailBox);
//Implementation of X-Anchor MailBox
if (!service.HttpHeaders.ContainsKey("X-AnchorMailbox"))
service.HttpHeaders.Add("X-AnchorMailbox", mailBox);
else
service.HttpHeaders["X-AnchorMailbox"] = mailBox;