OneDrive container cTag property stopped changing

Gary Harpaz 0 Reputation points Microsoft Employee
2024-11-01T20:32:43.72+00:00

Hi,

According to the docs:

DriveItem - OneDrive API - OneDrive dev center | Microsoft Learn

"The cTag value is modified when content or metadata of any descendant of the folder is changed. "

I am using graph Api to monitor changes in one of my folders. Indeed this used to work as described but suddenly cTag property remains constant.

It will not respond to changes in sub folder files, adding files, deleting files or modifying fild in sub folders no longer causes the parent folder cTag to change.

Thanks,

Gary

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,345 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
1,281 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Emi Zhang-MSFT 25,706 Reputation points Microsoft Vendor
    2024-11-04T07:20:44.47+00:00

    Hi,

    I suggest you post this thread to OneDrive for Developer forum:

    https://techcommunity.microsoft.com/t5/onedrive-developer/bd-p/OneDriveDeveloperThe reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. CarlZhao-MSFT 42,611 Reputation points
    2024-11-04T07:49:42.6566667+00:00

    Hi @Gary Harpaz

    I just did some testing locally and I found that when I change the metadata of a child file, the cTag property of the parent folder will remain unchanged, while the cTag property of the child file will change.

    It looks like the change is only applied to the file itself and not the parent folder, and you need to track the changes to the cTag property of each file inside the parent folder. This doesn't sound like a good idea, so I suggest you open a support ticket to confirm with the API owner if there are any changes to the API and get help.

    Hope this helps.

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.