0

Get the Status of the Bulk Read Job

by
Published Oct 17, 2025

To get the details of a bulk read job performed previously.

Script zoho Verified

The script

Submitted by hugo697 Bun
Verified 235 days ago
1
//native
2
type Zoho = {
3
  token: string;
4
  baseUrl: string;
5
};
6
/**
7
 * Get the Status of the Bulk Read Job
8
 * To get the details of a bulk read job performed previously.
9
 */
10
export async function main(
11
  auth: Zoho,
12
  account_owner_name: string,
13
  app_link_name: string,
14
  report_link_name: string,
15
  job_ID: string,
16
) {
17
  const url = new URL(
18
    `${auth.baseUrl}/creator/v2.1/bulk/${account_owner_name}/${app_link_name}/report/${report_link_name}/read/${job_ID}`,
19
  );
20

21
  const response = await fetch(url, {
22
    method: "GET",
23
    headers: {
24
      Authorization: "Zoho-oauthtoken " + auth.token,
25
    },
26
    body: undefined,
27
  });
28
  if (!response.ok) {
29
    const text = await response.text();
30
    throw new Error(`${response.status} ${text}`);
31
  }
32
  return await response.json();
33
}
34