---
title: "GET /ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}"
method: GET
path: "/ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}"
tags: ["Task"]
---

# GET /ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}

`GET /ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}`

## Request

- Base URL: `https://api.enviance.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enviance.com/ver2/TaskService.svc/tasks/{taskId}/occurrences/{dueDate}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/enviance/apis/restapi/docs/ver2/TaskService.svc/tasks/:taskId/occurrences/:dueDate/get.ts> (a function with typed inputs; its response is checked against the schema)

Gets information about a Task occurrence.

**Security:** Requires Manage Tasks right. 

**SDK API:**  `envianceSdk.tasks.getTaskOccurrence(taskId, dueDate, objectIdOrPath, onsuccess, onerror)`

```
GET /ver2/TaskService.svc/tasks/9ca22677-2670-41a9-bafd-3b2825592863 HTTP/1.1

//RESPONSE
{
  "name": "Check Valves Monthly",
  "description": "Perform a spot check every month on the steam valves.",
  "dueDate": "2012-12-08T09:00:00",
  "timeZone": "USA Pacific",
  "assignor": "CGauss",
  "assignees": [{"userName": "LEuler"}, {"groupName": "Group A"}],
  "calendars": ["System", "My"],
  "objects": [
    "/A Facility/A Unit/A POI/Check Valves",
    "/A Facility/A Unit/B POI/Check Valves"
  ],
  "documents": ["/A folder/A subfolder/A document.doc"]
}

```



envianceSdk.tasks.getTaskOccurrence
```
[
  "ad7b8413-812a-4e59-95f4-03205ca685f0",
  "2013-12-08T09:00:00",
  "/Bug 1",
  "onsuccess",
  "onerror"
]
```

## Path parameters

- `taskId` string, required
- `dueDate` string, required

## Headers

- `EnvApi-Systemid` string
- `EnvApi-Packageid` string
- `EnvApi-Udf-DateTime-Iso-In-CustomFields` string
- `EnvApi-Udf-DateTime-ReadInUserTz` string
- `EnvApi-Udf-Value-Invariant` string
- `EnvApi-Localization-All` string
- `x-client-request-id` string

## Response `default`

not available

- EnvianceRestServicesVer2TasksTaskOccurrenceInfo[]
  - `statusChangeDate` string, date-time
  - `objectIdOrPath` string
  - `dismissed` boolean
  - `percentComplete` string, byte
  - `hoursToComplete` number, double
  - `costToComplete` number
  - `comment` string
  - `eventInstanceId` string, guid
  - `compliancePeriodStartDate` string, date-time
  - `compliancePeriodEndDate` string, date-time
  - `comply` string
  - `ObjectId` string, guid

---

[API](https://skmtc.dev/enviance/apis/restapi.md) - [All operations](https://skmtc.dev/enviance/apis/restapi/llms.txt) - [OpenAPI document](https://skmtc.dev/enviance/apis/restapi/revisions/45b2200a8cf2?raw)
