Exclude Deleted Folders when we request ContactFolderCollectionPage with GraphBeta Api

Prashanth Ettaboina 66 Reputation points
2022-07-14T06:07:30.577+00:00

Hi Team,
I'm using Graph Beta Api to retrieve all the folders (deep traversal) from Contacts Folder. I am indeed getting all the folders but with those I'm able to see the Deleted Folders as well.

Is there any filter which will exclude the deleted folders when we call the ContactFolderCollectionPage.

here is the code block

contactFolderCollectionPage = graphClient.users(email).contactFolders().buildRequest().count(true).skip(offset).top(maxNumber).get();

currently I'm using graph beta version to get all the contacts folders including the subFolders and childFolders (deep traversal). Since, graph v1.0 is not capable of deep traversal folder retrieval.

your response is deeply appreciated.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,586 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sheena-MSFT 1,721 Reputation points
    2022-07-14T10:27:28.103+00:00

    Hi @Prashanth Ettaboina ,

    As per my research there is no such property available for contactFolder object to determine whether it is a deleted one or not. Please raise a feature request here so that the respective team will look in to it based on the priority.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


0 additional answers

Sort by: Most helpful