我需要我们使用的邮件帐户文件夹的文件夹ID,以从编程中获取电子邮件。现在,我们使用图形API,只需要从特定文件夹中发送电子邮件。我尝试了一些设置。

问题描述 投票:0回答:1

确定您尝试了哪个端点,但是当您调用以下端点之一时

GET https://graph.microsoft.com/v1.0/me/mailFolders GET https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/mailFolders

Endpoint返回

mailFolder
graph outlook microsoft-graph-api office365 microsoft-graph-mail
1个回答
0
投票
您可以通过其

displayName

过滤特定文件夹
GET https://graph.microsoft.com/v1.0/me/mailFolders?$filter=displayName eq '{folder_name}'

如果您需要列表子文件夹,则可以调用此端点:

GET https://graph.microsoft.com/v1.0/me/mailFolders/{folder_id}/childFolders

	

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.