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,
The rootActivityId didn’t work, but funnily enough, the id is back, and it worked using that.
- v-achippa1 year agoCommunity Support
Hi Yacine911,
Thank you for the response, since the issue is resolved, I request you if any of the responses helped, kindly consider marking it as accept as solution or please mark the above post as accept as solution. This helps others in the community find it more easily.
Thanks and regards,
Anjan Kumar Chippa