> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Find Time Entries

- Component: `appmixer.toggl.core.FindTimeEntries`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.toggl 1.0.0](https://connectors.appmixer.com/connector/appmixer.toggl/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.toggl/1.0.0/component/appmixer.toggl.core.FindTimeEntries>

Find the time entries of the connected user that overlap a date range, newest first (up to 1,000). Without dates it returns the last 7 days. For the time of other workspace members use Find Report Time Entries.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Start Date (`startDate`) | date-time | Start of the range. Use together with End Date. Leave both empty for the last 7 days. |
| End Date (`endDate`) | date-time | End of the range. Use together with Start Date. |
| Project (`projectId`) | text | Pick a project or type its numeric ID to return only its entries. Optional. |
| Output Type (`outputType`) | select | Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file. |

## Output ports

### Port `out`

Variables are loaded dynamically from `/component/appmixer/toggl/core/FindTimeEntries?outPort=out&ignoreAuth=true`.

### Port `notFound`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.toggl.core.FindTimeEntries",
  "label": "Find Time Entries",
  "description": "Find the time entries of the connected user that overlap a date range, newest first (up to 1,000). Without dates it returns the last 7 days. For the time of other workspace members use Find Report Time Entries.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:toggl"
  },
  "quota": {
    "manager": "appmixer:toggl",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "startDate": {
            "type": "string",
            "format": "date-time"
          },
          "endDate": {
            "type": "string",
            "format": "date-time"
          },
          "projectId": {
            "type": "string"
          },
          "outputType": {
            "type": "string",
            "default": "array"
          }
        }
      },
      "inspector": {
        "inputs": {
          "startDate": {
            "type": "date-time",
            "label": "Start Date",
            "tooltip": "Start of the range. Use together with End Date. Leave both empty for the last 7 days.",
            "index": 1
          },
          "endDate": {
            "type": "date-time",
            "label": "End Date",
            "tooltip": "End of the range. Use together with Start Date.",
            "index": 2
          },
          "projectId": {
            "type": "text",
            "label": "Project",
            "tooltip": "Pick a project or type its numeric ID to return only its entries. Optional.",
            "source": {
              "url": "/component/appmixer/toggl/core/ListProjects?outPort=out",
              "data": {
                "messages": {
                  "in/outputType": "array"
                },
                "properties": {
                  "isSource": true
                },
                "transform": "./ListProjects#toSelectArray"
              }
            },
            "index": 3
          },
          "outputType": {
            "type": "select",
            "label": "Output Type",
            "index": 4,
            "defaultValue": "array",
            "tooltip": "Choose whether you want to receive the result set as one complete list, or first item only or one item at a time or stream the items to a file.",
            "options": [
              {
                "label": "First Item Only",
                "value": "first"
              },
              {
                "label": "All items at once",
                "value": "array"
              },
              {
                "label": "One item at a time",
                "value": "object"
              },
              {
                "label": "Store to CSV file",
                "value": "file"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/toggl/core/FindTimeEntries?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/outputType": "inputs/in/outputType"
          }
        }
      }
    },
    {
      "name": "notFound"
    }
  ],
  "icon": "(data URI omitted)"
}
```
