How can I get the status of calculation request when using Workbook /calculate endpoint?

Sankalp 0 Reputation points

I am using the Microsoft Graph API endpoint /calculate for workbook recalculation, but it does not provide a way to poll for the status of the calculation asynchronously. After making a POST request to this endpoint, it initiates the calculation process and simply returns a 200 OK status

My use case involves -

  1. Write a cell
  2. Recalculate workbook
  3. Read another cell

But, the detailed workbook takes anywhere from 10-60 seconds to recalculate hence I need a flag for status or polling example/endpoint to solve this. I have also tried openpyxl and other implementations without luck

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,124 questions
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,072 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,658 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,671 questions
0 comments No comments
{count} votes