Forum Discussion
monitoring notebook via API
- 1 year ago
hi,
The rootActivityId didn’t work, but funnily enough, the id is back, and it worked using that.
Hi Yacine911,
Thank you for reaching out to Microsoft Fabric Community.
The response from the POST request to run a notebook will not include a field like named job Instance Id. But we can use the rootActivityId which we get from the response to monitor the notebook's execution status.
Run this below to get the rootActivityId:
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{notebookId}/jobs/instances
Run this below one to get the status:
{workspaceId} – your workspace Id
{notebookId} – the notebook item Id
{rootActivityId} – from the POST response
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi Yacine911,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution I have provided for the issue worked? or let us know if you need any further assistance.
If my response addressed, please mark it as "Accept as solution" and click "Yes" if you found it helpful.
Thanks and regards,
Anjan Kumar Chippa