Complete the related Task for a specific Forms App
const formsAppId = 1
const taskId = 2
const completedTask = await scheduledTasksService.completeTask({
formsAppId,
taskId,
})
Delete the completed task record related to a Task for a specific Forms App
const formsAppId = 1
const taskId = 2
const completedTask = await scheduledTasksService.completeTask({
formsAppId,
taskId,
})
await deleteCompletedTask(completedTask.id)
Obtain all of the tasks related to a Task Group Instances in a specific Forms App
const formsAppId = 1
const taskGroupInstanceId = 'abc123'
const date = '2023-12-01'
const tasks = await getTaskGroupInstanceTasks({
formsAppId,
taskGroupInstanceId,
date,
})
Obtain all of the Task Group instances for a specific Forms App
const formsAppId = 1
const taskGroupInstances = await getTaskGroupInstances(formsAppId)
Obtain all of the related Tasks for a specific Forms App
const formsAppId = 1
const date = '2023-12-01'
const tasks = await getTasksForFormsApp({ formsAppId, date })
Scheduled Tasks Service
Helper functions for scheduled tasks