private void EWSTestGetFolder(string DistinguishedFolderName) { Dictionary <string, string> fieldValues = new Dictionary <string, string>(); fieldValues.Add("FolderId", $"<t:DistinguishedFolderId Id=\"{DistinguishedFolderName}\" />"); TryXmlRequest(FormReplaceTemplateFields.RetrieveEWSRequest("GetFolder", fieldValues)); }
private void EWSTestFindItem(string DistinguishedFolderName) { Dictionary <string, string> fieldValues = new Dictionary <string, string>(); fieldValues.Add("BaseShape", "Default"); fieldValues.Add("MaxEntriesReturned", "50"); fieldValues.Add("Offset", "0"); fieldValues.Add("Basepoint", "Beginning"); fieldValues.Add("Folder", $"<t:DistinguishedFolderId Id=\"{DistinguishedFolderName}\" />"); TryXmlRequest(FormReplaceTemplateFields.RetrieveEWSRequest("FindItem", fieldValues)); }