# Projectworks

> Work with companies, projects, people, time entries, leave and invoices.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/projectworks

## Actions

### Create client

Create client in Projectworks.

**Inputs**

- Client name (`client_name`, text, required): Client name.
- Account manager (`account_manager_id`, number, required): Account manager id.
- Office (`office_id`, number, required): Office id.
- Currency ID (`currency_id`, number): Currency id.
- Client type (`client_type_id`, number): Client type id.
- Default rate card ID (`default_rate_card_id`, number): Default rate card id.
- Default tax type ID (`default_tax_type_id`, number): Default tax type id.
- Finance email (`finance_email`, text): Finance email.
- Finance phone (`finance_phone`, text): Finance phone.
- Finance notes (`finance_notes`, text): Finance notes.
- Is invoice reference required (`is_invoice_reference_required`, true/false): Is invoice reference required.
- Send billing contact email (`send_billing_contact_email`, true/false): Send billing contact email.
- Send client finance email (`send_client_finance_email`, true/false): Send client finance email.
- Quote send billing contact email (`quote_send_billing_contact_email`, true/false): Quote send billing contact email.
- Quote send client finance email (`quote_send_client_finance_email`, true/false): Quote send client finance email.
- Finance payment term type ID (`finance_payment_term_type_id`, number): Finance payment term type id.
- Finance payment term days (`finance_payment_term_days`, number): Finance payment term days.
- Is active (`is_active`, true/false): Is active.
- Address (`address`, object): Address.
- Company tax number (`company_tax_number`, text): Company tax number.
- External reference (`external_reference`, text): External reference.

**Outputs**

- `data` (object): The response from Projectworks.

**Example output**

```json
{
  "data": {
    "accountManagerID": 1,
    "accountManagerName": "example",
    "clientID": 1,
    "clientName": "example",
    "clientTypeID": 1,
    "clientTypeName": "example",
    "currencyID": 1,
    "defaultCurrencyID": 1,
    "defaultRateCardID": 1,
    "defaultTaxTypeID": 1,
    "financeEmail": "example",
    "financePhone": "example",
    "officeID": 1,
    "officeName": "example"
  }
}
```

### Delete client

Delete client in Projectworks.

**Inputs**

- Client ID (`client_id`, number, required): Client id.

**Outputs**

- `data` (object): The response from Projectworks.

**Example output**

```json
{
  "data": {}
}
```

### Get client

Get client from Projectworks.

**Inputs**

- Client ID (`client_id`, number, required): Client id.

**Outputs**

- `data` (object): The response from Projectworks.

**Example output**

```json
{
  "data": {
    "accountManagerID": 1,
    "accountManagerName": "example",
    "clientID": 1,
    "clientName": "example",
    "clientTypeID": 1,
    "clientTypeName": "example",
    "currencyID": 1,
    "defaultCurrencyID": 1,
    "defaultRateCardID": 1,
    "defaultTaxTypeID": 1,
    "financeEmail": "example",
    "financePhone": "example",
    "officeID": 1,
    "officeName": "example"
  }
}
```

### Get office

Get office from Projectworks.

**Inputs**

- Office (`office_id`, number, required): Office id.

**Outputs**

- `data` (object): The response from Projectworks.

**Example output**

```json
{
  "data": {
    "capacityDays": [
      {
        "dayOfWeekID": 1,
        "hours": {}
      }
    ],
    "countryID": 1,
    "countryName": "example",
    "currencyCode": "example",
    "currencyID": 1,
    "defaultTaxTypeID": 1,
    "fullName": "example",
    "invoiceHoursPerDay": {},
    "isActive": true,
    "locationID": 1,
    "name": "example",
    "officeID": 1,
    "phoneNumber": "example",
    "website": "example"
  }
}
```

### Get project

Get project from Projectworks.

**Inputs**

- Project ID (`project_id`, number, required): Project id.

**Outputs**

- `data` (object): The response from Projectworks.

**Example output**

```json
{
  "data": {
    "clientID": 1,
    "clientName": "example",
    "currencyCode": "example",
    "currencyID": 1,
    "officeID": 1,
    "officeName": "example",
    "projectBudgetTypeID": 1,
    "projectID": 1,
    "projectName": "example",
    "projectNumber": "example",
    "projectStatusID": 1,
    "projectStatusName": "example",
    "projectTypeID": 1,
    "projectTypeName": "example"
  }
}
```

### Get user

Get user from Projectworks.

**Inputs**

- Person (`person_id`, number, required): Person id.

**Outputs**

- `data` (object): The response from Projectworks.

**Example output**

```json
{
  "data": {
    "firstName": "example",
    "lastName": "example",
    "userID": 1
  }
}
```

### List client types

List client types from Projectworks.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "clientTypeID": 1,
      "name": "example"
    }
  ]
}
```

### List clients

List clients from Projectworks.

**Inputs**

- Office (`office_id`, number): Office id.
- Client ID (`client_id`, number): Client id.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Name (`name`, text): Name.
- External reference (`external_reference`, text): External reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "accountManagerID": 1,
      "accountManagerName": "example",
      "clientID": 1,
      "clientName": "example",
      "clientTypeID": 1,
      "clientTypeName": "example",
      "currencyID": 1,
      "defaultCurrencyID": 1,
      "defaultRateCardID": 1,
      "defaultTaxTypeID": 1,
      "financeEmail": "example",
      "financePhone": "example",
      "officeID": 1,
      "officeName": "example"
    }
  ]
}
```

### List invoices

List invoices from Projectworks.

**Inputs**

- Modified since date (`modified_since_date`, date and time): Modified since date.
- Invoice ID (`invoice_id`, number): Invoice id.
- Invoice number (`invoice_number`, text): Invoice number.
- Client ID (`client_id`, number): Client id.
- Project ID (`project_id`, number): Project id.
- Billing contact ID (`billing_contact_id`, number): Billing contact id.
- Status ID (`status_id`, number): Status id.
- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "billingContactID": 1,
      "clientID": 1,
      "currencyCode": "example",
      "currencyID": 1,
      "dueDate": "example",
      "invoiceDate": "example",
      "invoiceID": 1,
      "invoiceNumber": "example",
      "projectID": 1,
      "statusCode": "example",
      "statusID": 1,
      "subTotal": {},
      "taxTotal": {},
      "total": {}
    }
  ]
}
```

### List leave records

List leave records from Projectworks.

**Inputs**

- Modified since date (`modified_since_date`, date and time): Modified since date.
- Leave ID (`leave_id`, number): Leave id.
- Person (`person_id`, number): Person id.
- Type ID (`type_id`, number): Type id.
- Status ID (`status_id`, number): Status id.
- Start date (`start_date`, date and time): Start date.
- End date (`end_date`, date and time): End date.
- External reference (`external_reference`, text): External reference.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "dateSubmitted": "example",
      "exportedBy": "example",
      "exportedDate": "example",
      "externalReference": "example",
      "isExportUpdateRequired": true,
      "isExported": true,
      "isReviewRequired": true,
      "leaveID": 1,
      "modifiedDateUTC": "example",
      "requestComment": "example",
      "responseComment": "example",
      "rowVersion": "example",
      "statusID": 1,
      "userID": 1
    }
  ]
}
```

### List leave types

List leave types from Projectworks.

**Inputs**

- Type ID (`type_id`, number): Type id.
- Name (`name`, text): Name.
- Is active (`is_active`, true/false): Is active.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "code": "example",
      "isActive": true,
      "isPaid": true,
      "name": "example",
      "typeID": 1
    }
  ]
}
```

### List modules

List modules from Projectworks.

**Inputs**

- Project ID (`project_id`, number): Project id.
- Module ID (`module_id`, number): Module id.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Name (`name`, text): Name.
- External reference (`external_reference`, text): External reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "budget": {},
      "feeTypeID": 1,
      "glCodeCode": "example",
      "glCodeID": 1,
      "glCodeName": "example",
      "glCodeTypeID": 1,
      "glCodeTypeName": "example",
      "isActive": true,
      "isDiscount": true,
      "isServices": true,
      "moduleID": 1,
      "moduleName": "example",
      "projectID": 1,
      "projectname": "example"
    }
  ]
}
```

### List offices

List offices from Projectworks.

**Inputs**

- Office (`office_id`, number): Office id.
- Name (`name`, text): Name.
- External reference (`external_reference`, text): External reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Page (`page`, number): Page. At least 1.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "capacityDays": [
        {
          "dayOfWeekID": 1,
          "hours": {}
        }
      ],
      "countryID": 1,
      "countryName": "example",
      "currencyCode": "example",
      "currencyID": 1,
      "defaultTaxTypeID": 1,
      "fullName": "example",
      "invoiceHoursPerDay": {},
      "isActive": true,
      "locationID": 1,
      "name": "example",
      "officeID": 1,
      "phoneNumber": "example",
      "website": "example"
    }
  ]
}
```

### List project statuses

List project statuses from Projectworks.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "projectStatusID": 1
    }
  ]
}
```

### List project types

List project types from Projectworks.

**Inputs**: None.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "projectTypeID": 1
    }
  ]
}
```

### List project users

List project users from Projectworks.

**Inputs**

- Project ID (`project_id`, number, required): Project id.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "costRate": {},
      "costRateCardID": 1,
      "costRateCurrencyCode": "example",
      "costRateSource": "example",
      "projectID": 1,
      "rate": {},
      "rateCardID": 1,
      "rateSource": "example",
      "userID": 1
    }
  ]
}
```

### List projects

List projects from Projectworks.

**Inputs**

- Client ID (`client_id`, number): Client id.
- Project ID (`project_id`, number): Project id.
- Person (`person_id`, number): Person id.
- Project number (`project_number`, text): Project number.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Name (`name`, text): Name.
- External reference (`external_reference`, text): External reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "clientID": 1,
      "clientName": "example",
      "currencyCode": "example",
      "currencyID": 1,
      "officeID": 1,
      "officeName": "example",
      "projectBudgetTypeID": 1,
      "projectID": 1,
      "projectName": "example",
      "projectNumber": "example",
      "projectStatusID": 1,
      "projectStatusName": "example",
      "projectTypeID": 1,
      "projectTypeName": "example"
    }
  ]
}
```

### List tasks

List tasks from Projectworks.

**Inputs**

- Project ID (`project_id`, number): Project id.
- Module ID (`module_id`, number): Module id.
- Task ID (`task_id`, number): Task id.
- Person (`person_id`, number): Person id.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Name (`name`, text): Name.
- External reference (`external_reference`, text): External reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "defaultRate": {},
      "endDate": "example",
      "enforceTimesheetDates": true,
      "isCommentRequired": true,
      "isOnTimesheet": true,
      "moduleID": 1,
      "moduleName": "example",
      "projectID": 1,
      "startDate": "example",
      "taskID": 1,
      "taskName": "example",
      "taskTypeID": 1,
      "taskTypeName": "example",
      "useDefaultRate": true
    }
  ]
}
```

### List timesheet entries

List timesheet entries from Projectworks.

**Inputs**

- Record ID (`record_id`, number): Record id.
- Person (`person_id`, number): Person id.
- Task ID (`task_id`, number): Task id.
- Date (`date`, date and time): Date.
- Comment (`comment`, text): Comment.
- User external reference (`user_external_reference`, text): User external reference.
- Task external reference (`task_external_reference`, text): Task external reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "comment": "example",
      "date": "example",
      "externalIssueID": "example",
      "firstName": "example",
      "id": 1,
      "invoiceNumber": "example",
      "isBillable": true,
      "isReviewed": true,
      "lastName": "example",
      "minutes": 1,
      "modifiedDateUTC": "example",
      "taskID": 1,
      "taskName": "example",
      "userID": 1
    }
  ]
}
```

### List users

List users from Projectworks.

**Inputs**

- Person (`person_id`, number): Person id.
- Email (`email`, text): Email.
- Include custom fields (`include_custom_fields`, true/false): Include custom fields.
- Name (`name`, text): Name.
- External reference (`external_reference`, text): External reference.
- Modified since date (`modified_since_date`, date and time): Modified since date.
- Page (`page`, number): Page. At least 1. Default: `1`.
- Page size (`page_size`, number): Page size. At least 1. Default: `100`.

**Outputs**

- `data` (list): The response from Projectworks.

**Example output**

```json
{
  "data": [
    {
      "firstName": "example",
      "lastName": "example",
      "userID": 1
    }
  ]
}
```
