vennila ramasamy
10/11/2023, 1:45 PMNElliott
10/11/2023, 1:48 PMSitaram upadhya
10/11/2023, 1:53 PMconst savedSearchId = 669;
// Create the search task
let myTask = task.create({
taskType: task.TaskType.SEARCH
});
myTask.savedSearchId = savedSearchId;
// Specify the ID of the file that search results will be exported into
myTask.fileId = 448;
// Submit the search task
let myTaskId = myTask.submit();
// Retrieve the status of the search task
let taskStatus = task.checkStatus({
taskId: myTaskId
});
// Optionally, add logic that executes when the task is complete
if (taskStatus.status === task.TaskStatus.COMPLETE) {
}
vennila ramasamy
10/11/2023, 2:58 PMvennila ramasamy
10/11/2023, 3:23 PMNElliott
10/11/2023, 3:31 PMNElliott
10/11/2023, 3:33 PMvennila ramasamy
10/11/2023, 4:21 PMNElliott
10/11/2023, 4:37 PM