> 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).

# Get Record

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

Get a company, person, sale, project, follow-up or ticket by its ID, with its owner and custom fields (user-defined and extra fields).

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Object (`object`) | select | The kind of record to read. |
| Record ID (`recordId`) | text | The ID of the record, for example from Record Updated or Find Records. |
| Time Zone (`timeZone`) | text | Optional. The time zone of your SuperOffice tenant, for example Europe/Oslo. SuperOffice keeps date-times in the local time of the tenant; the time zone is detected automatically (reliably for European tenants) and this setting overrides it. Date-times the component returns are always in UTC. |

## Output ports

### Port `out`

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

## Full metadata (component.json)

```json
{
  "name": "appmixer.superoffice.core.GetRecord",
  "label": "Get Record",
  "description": "Get a company, person, sale, project, follow-up or ticket by its ID, with its owner and custom fields (user-defined and extra fields).",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:superoffice"
  },
  "quota": {
    "manager": "appmixer:superoffice",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "object": {
            "type": "string",
            "enum": [
              "company",
              "person",
              "sale",
              "project",
              "appointment",
              "ticket"
            ]
          },
          "recordId": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          }
        },
        "required": [
          "object",
          "recordId"
        ]
      },
      "inspector": {
        "inputs": {
          "object": {
            "type": "select",
            "index": 1,
            "label": "Object",
            "tooltip": "The kind of record to read.",
            "options": [
              {
                "label": "Company",
                "value": "company"
              },
              {
                "label": "Person",
                "value": "person"
              },
              {
                "label": "Sale",
                "value": "sale"
              },
              {
                "label": "Project",
                "value": "project"
              },
              {
                "label": "Follow-up (appointment or task)",
                "value": "appointment"
              },
              {
                "label": "Ticket (request)",
                "value": "ticket"
              }
            ]
          },
          "recordId": {
            "type": "text",
            "index": 2,
            "label": "Record ID",
            "tooltip": "The ID of the record, for example from Record Updated or Find Records."
          },
          "timeZone": {
            "type": "text",
            "index": 3,
            "label": "Time Zone",
            "tooltip": "Optional. The time zone of your SuperOffice tenant, for example Europe/Oslo. SuperOffice keeps date-times in the local time of the tenant; the time zone is detected automatically (reliably for European tenants) and this setting overrides it. Date-times the component returns are always in UTC.",
            "source": {
              "url": "/component/appmixer/superoffice/core/ListTimeZones?outPort=out",
              "data": {
                "transform": "./ListTimeZones#toSelectArray"
              }
            }
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "source": {
        "url": "/component/appmixer/superoffice/core/GetRecord?outPort=out&ignoreAuth=true",
        "data": {
          "properties": {
            "generateOutputPortOptions": true
          },
          "messages": {
            "in/object": "inputs/in/object",
            "in/recordId": "dummy"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
