Sensitivity label graph api

Neel Patel 0 Reputation points
2024-09-24T14:45:23.6366667+00:00

Hello here hoping to find a solution to the problem below. I am using sensitivity label Graph Api [POST /drives/{drive-id}/items/{item-id}/assignSensitivityLabel] to change sensitivity label from power apps we are sending the request successfully and 90 % they are executed successfully but

10% is erroring out as Unknown, not sure what is causing that.

For files already have label on approved label It is taking approx. 2 - 3 hour to execute compare others that take avg 8mins.

What could cause it and is there a better way to use and send these api call?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,943 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,958 questions
Microsoft Power Platform Training
Microsoft Power Platform Training
Microsoft Power Platform: An integrated set of Microsoft business intelligence services.Training: Instruction to develop new skills.
366 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xyza Xue_MSFT 24,256 Reputation points Microsoft Vendor
    2024-09-25T02:28:38.7166667+00:00

    Hi @Neel Patel ,

    Unknown Errors: The unknown errors could be due to various reasons such as network issues, API rate limits, or specific file conditions. It might be helpful to check the error codes and messages returned by the API to get more insights.

    Execution Time: The longer execution time for files that already have a label could be due to the additional processing required to update the existing label.

    There is currently no other sensitivity label graph Api that performs faster. Personally, I completely agree with you, this is indeed a good addition to the current features of SharePoint. Thank you for bringing things to our attention. We sincerely recommend you go to SharePoint Feedback community to provide your feedback: SharePoint · Community (microsoft.com).


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

    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.


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.