/// <summary> /// Retrieves all messages in a specific user mailFolder /// </summary> public async Task <Microsoft.Graph.IMailFolderMessagesCollectionPage> getMailFolderMessages(string folderId, string requestUri, string callbackToken) { // Get access token var token = Data.GetUserSessionToken(Settings.GetUserAuthStateId(ControllerContext.HttpContext), Settings.AzureADAuthority); // TODO: Comes in chunks of 10, need to iterate through all... var messages = await GraphApiHelper.getMailFolderMessages(folderId, token.AccessToken, requestUri, callbackToken); return(messages); }