Support to Suppress Webhook Notifications During File Upload in ChunkedUploadRequest

Vivek Buddhadev 46 Reputation points
2024-11-21T07:22:05.6733333+00:00

I've used Microsoft-Graph version 2.3.2 in my Java application.

When using the Microsoft Graph API to upload files to SharePoint using the ChunkedUploadRequest class, webhook notifications are triggered for the same file upload, as SharePoint treats it as an Add event.

This causes redundant webhook notifications to the application, which leads to unnecessary processing for files already uploaded by the application itself.

To address this, can we have a feature setting a flag, custom metadata, or a parameter in the ChunkedUploadRequest call to suppress webhook notifications for specific files?

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

1 answer

Sort by: Most helpful
  1. Ki-lianK-7341 500 Reputation points
    2024-11-21T07:23:13.75+00:00

    Currently, the Microsoft Graph API doesn’t support suppressing webhook notifications during chunked uploads. Here are some workarounds:

    1. Filter Notifications: Add logic to ignore notifications for files your app just uploaded.
    2. Batch Processing: Aggregate notifications to reduce processing.
    3. Custom Metadata: Tag files during upload and check this metadata in your webhook handler.

    For a permanent solution, consider submitting a feature request to the Microsoft Graph team.


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.