Process empty response

When calling Microsoft Fabric endpoint, I am receiving status code 202 - accepted and body is empty. Actual data, that I need is in the response header, so I added transformation script:


function transform (options) {

return {"headers":options.headers }
}


But still next node is not called. Even when I turn debug mode on, debug data is empty.

How can I process header value, if the body is empty?

Is this an import or lookup? If it's an import, you should just need to use response mapping and reference headers.

This is an export node. Actually, I want to run fabric notebook from CeliGO. So I am calling endpoint- POST: https://api.fabric.microsoft.com/v1/workspaces/{{workspaceID}}/items/{{notebookID}}/jobs/instances?jobType=RunNotebook

This endpoint returns 202 and in the header returns an URL, from which I can monitor the progress and the status of the notebook run.

Are you hoping to fetch results from it after the run or it's purely a "trigger this thing and let me know when it is done" vs a "trigger this thing and fetch results of the job/report/results"?