# Replicon

> Work with timesheets, projects, tasks, clients and time off in Replicon.

App · 29 actions. Web page: https://docs.lodol.com/docs/integrations/replicon

## Actions

### Approve a timesheet

Approve a timesheet, moving it to its next approver.

**Inputs**

- Timesheet (`timesheet_uri`, text, required): The timesheet, by the URI Get a timesheet returns.
- Comments (`comments`, text): A note kept with the timesheet's history.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Create a client

Add a client. A client with the same name is updated instead.

**Inputs**

- Name (`name`, text, required): The client's name.
- Code (`code`, text): The client's code.
- Comment (`comment`, text): Notes about the client.
- Active (`is_active`, true/false): Whether the client is active.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "displayText": "example",
      "name": "example",
      "slug": "example",
      "uri": "example"
    }
  }
}
```

### Create a project

Add a project.

**Inputs**

- Name (`name`, text, required): The project's name.
- Code (`code`, text): The project's code.
- Description (`description`, text): What the project is.
- Start date (`start_date`, date): When the project starts.
- End date (`end_date`, date): When the project ends.
- Time entry allowed (`time_entry_allowed`, true/false): Whether people can log time to the project.
- Estimated hours (`estimated_hours`, number): Hours the project should take. At least 0.
- Project leader (`leader_login_name`, text): The login name of the project leader.
- Status (`status_name`, text): The project status to set, by its name in Replicon.
- Billing type (`billing_type`, text): How the project is billed. It can only be set when the project is created. One of: `urn:replicon:billing-type:time-and-material` (Time and materials), `urn:replicon:billing-type:fixed-bid` (Fixed bid), `urn:replicon:billing-type:non-billable` (Not billable), `urn:replicon:billing-type:billing-contract` (Billing contract).
- Client (`client_uri`, text): The client the project is for.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "code": "example",
      "displayText": "example",
      "name": "example",
      "slug": "example",
      "uri": "example"
    }
  }
}
```

### Create a task

Add a task to a project.

**Inputs**

- Project (`project_uri`, text, required): The project.
- Name (`name`, text, required): The task's name.
- Code (`code`, text): The task's code.
- Description (`description`, text): What the task is.
- Start date (`start_date`, date): The first day time can be logged to the task.
- End date (`end_date`, date): The last day time can be logged to the task.
- Estimated hours (`estimated_hours`, number): Hours the task should take. At least 0.
- Time entry allowed (`time_entry_allowed`, true/false): Whether people can log time to the task.
- Closed (`is_closed`, true/false): Close the task, or reopen it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "code": "example",
      "displayText": "example",
      "name": "example",
      "parameterCorrelationId": "example",
      "uri": "example"
    }
  }
}
```

### Delete a client

Delete a client for good.

**Inputs**

- Client (`client_uri`, text, required): The client.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Delete a project

Delete a project for good.

**Inputs**

- Project (`project_uri`, text, required): The project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Delete a task

Delete a task for good.

**Inputs**

- Project (`project_uri`, text): The project the task is in, to choose the task from.
- Task (`task_uri`, text, required): The task.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Delete a time entry

Delete a time entry for good.

**Inputs**

- Time entry (`time_entry_uri`, text, required): The time entry, by the URI List time entries returns.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Get a client

Get a client's details and address.

**Inputs**

- Client (`client_uri`, text, required): The client.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "billingContact": "example",
      "clientAddress": {
        "address": "example",
        "city": "example",
        "email": "example",
        "phoneNumber": "example",
        "stateProvince": "example",
        "website": "example",
        "zipPostalCode": "example"
      },
      "clientManager": {
        "displayText": "example",
        "uri": "example",
        "user": {
          "displayText": "example",
          "loginName": "example",
          "slug": "example",
          "uri": "example"
        }
      },
      "code": "example",
      "comment": "example",
      "displayText": "example",
      "isActive": true,
      "name": "example",
      "slug": "example",
      "uri": "example"
    }
  }
}
```

### Get a person

Get a person's details: email, employee ID, department and supervisor.

**Inputs**

- Person (`user_uri`, text, required): The person.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "companyKey": "example",
      "department": {
        "displayText": "example",
        "name": "example",
        "uri": "example"
      },
      "displayText": "example",
      "emailAddress": "example",
      "employeeId": "example",
      "employmentDateRange": {
        "endDate": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "startDate": {
          "day": 1,
          "month": 1,
          "year": 1
        }
      },
      "loginName": "example",
      "slug": "example",
      "supervisor": {
        "displayText": "example",
        "uri": "example",
        "user": {
          "displayText": "example",
          "loginName": "example",
          "slug": "example",
          "uri": "example"
        }
      },
      "uri": "example"
    }
  }
}
```

### Get a project

Get a project's details: client, leader, dates, status and estimates.

**Inputs**

- Project (`project_uri`, text, required): The project.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "billingType": {
        "displayText": "example",
        "uri": "example"
      },
      "budgetedHours": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "client": {
        "displayText": "example",
        "name": "example",
        "slug": "example",
        "uri": "example"
      },
      "clientRepresentative": {
        "displayText": "example",
        "loginName": "example",
        "slug": "example",
        "uri": "example"
      },
      "code": "example",
      "description": "example",
      "displayText": "example",
      "estimatedHours": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "isProjectLeaderApprovalRequired": true,
      "isTimeEntryAllowed": true,
      "name": "example",
      "percentCompleted": 1,
      "projectLeader": {
        "displayText": "example",
        "uri": "example",
        "user": {
          "displayText": "example",
          "loginName": "example",
          "slug": "example",
          "uri": "example"
        }
      },
      "slug": "example",
      "status": {
        "displayText": "example",
        "name": "example",
        "uri": "example"
      },
      "timeEntryDateRange": {
        "endDate": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "startDate": {
          "day": 1,
          "month": 1,
          "year": 1
        }
      },
      "uri": "example"
    }
  }
}
```

### Get a task

Get a task's details.

**Inputs**

- Project (`project_uri`, text): The project the task is in, to choose the task from.
- Task (`task_uri`, text, required): The task.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "closedOnDate": {
        "day": 1,
        "month": 1,
        "year": 1
      },
      "code": "example",
      "description": "example",
      "displayText": "example",
      "estimatedHours": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "isClosed": true,
      "isTimeEntryAllowed": true,
      "name": "example",
      "parent": {
        "displayText": "example",
        "uri": "example"
      },
      "percentCompleted": 1,
      "project": {
        "code": "example",
        "displayText": "example",
        "name": "example",
        "slug": "example",
        "uri": "example"
      },
      "slug": "example",
      "timeEntryDateRange": {
        "endDate": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "startDate": {
          "day": 1,
          "month": 1,
          "year": 1
        }
      },
      "uri": "example"
    }
  }
}
```

### Get a timesheet

Find a person's timesheet for the period holding a date.

**Inputs**

- Person (`user_uri`, text, required): The person.
- Date (`date`, date, required): A day inside the timesheet's period.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "timesheet": {
        "displayText": "example",
        "slug": "example",
        "uri": "example"
      },
      "timesheetFormat": "example"
    }
  }
}
```

### Get a timesheet's approvals

Get a timesheet's approval status and history.

**Inputs**

- Timesheet (`timesheet_uri`, text, required): The timesheet, by the URI Get a timesheet returns.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "approvalStatus": {
        "displayText": "example",
        "uri": "example"
      },
      "history": [
        {
          "action": {
            "displayText": "example",
            "uri": "example"
          },
          "authority": {
            "actingUser": {
              "displayText": "example",
              "loginName": "example",
              "slug": "example",
              "uri": "example"
            },
            "displayText": "example"
          },
          "comments": "example",
          "timestamp": {
            "day": 1,
            "hour": 1,
            "minute": 1,
            "month": 1,
            "year": 1
          }
        }
      ],
      "timesheet": {
        "displayText": "example",
        "slug": "example",
        "uri": "example"
      }
    }
  }
}
```

### Get a timesheet's summary

Get a timesheet's status, due date and total, billable and overtime hours, by project and day.

**Inputs**

- Timesheet (`timesheet_uri`, text, required): The timesheet, by the URI Get a timesheet returns.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "actualsByDate": [
        {
          "date": {
            "day": 1,
            "month": 1,
            "year": 1
          },
          "totalTimeDuration": {
            "hours": 1,
            "minutes": 1,
            "seconds": 1
          },
          "workingTimeDuration": {
            "hours": 1,
            "minutes": 1,
            "seconds": 1
          }
        }
      ],
      "actualsByProject": [
        {
          "project": {
            "code": "example",
            "displayText": "example",
            "name": "example",
            "slug": "example",
            "uri": "example"
          },
          "totalTimeDuration": {
            "hours": 1,
            "minutes": 1,
            "seconds": 1
          }
        }
      ],
      "approvalStatus": {
        "displayText": "example",
        "uri": "example"
      },
      "billableTimeDuration": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "dueDate": {
        "day": 1,
        "month": 1,
        "year": 1
      },
      "nonBillableTimeDuration": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "overtimeDuration": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "timeOffTimeDuration": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "timesheetStatus": {
        "displayText": "example",
        "uri": "example"
      },
      "totalTimeDuration": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      },
      "workingTimeDuration": {
        "hours": 1,
        "minutes": 1,
        "seconds": 1
      }
    }
  }
}
```

### List a project's tasks

List the tasks directly under a project or a task.

**Inputs**

- Project or task (`parent_uri`, text, required): The project, or the task whose sub-tasks to list.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "closedOnDate": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "code": "example",
        "description": "example",
        "displayText": "example",
        "estimatedHours": {
          "hours": 1,
          "minutes": 1,
          "seconds": 1
        },
        "isClosed": true,
        "isTimeEntryAllowed": true,
        "name": "example",
        "parent": {
          "displayText": "example",
          "uri": "example"
        },
        "percentCompleted": 1,
        "project": {
          "code": "example",
          "displayText": "example",
          "name": "example",
          "slug": "example",
          "uri": "example"
        },
        "slug": "example",
        "timeEntryDateRange": {
          "endDate": {
            "day": 1,
            "month": 1,
            "year": 1
          },
          "startDate": {
            "day": 1,
            "month": 1,
            "year": 1
          }
        },
        "uri": "example"
      }
    ]
  }
}
```

### List clients

List the active clients.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "displayText": "example",
        "name": "example",
        "slug": "example",
        "uri": "example"
      }
    ]
  }
}
```

### List people

List the people who can sign in to Replicon.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "displayText": "example",
        "loginName": "example",
        "slug": "example",
        "uri": "example"
      }
    ]
  }
}
```

### List projects

List every project.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "code": "example",
        "displayText": "example",
        "name": "example",
        "slug": "example",
        "uri": "example"
      }
    ]
  }
}
```

### List time entries

List the time a person logged in a date range.

**Inputs**

- Person (`user_uri`, text, required): The person.
- From (`start_date`, date, required): The first day to include.
- To (`end_date`, date, required): The last day to include.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "customMetadata": [
          {
            "keyUri": "example",
            "value": {
              "bool": true,
              "number": 1,
              "text": "example",
              "uri": "example"
            }
          }
        ],
        "entryDate": {
          "day": 1,
          "month": 1,
          "year": 1
        },
        "interval": {
          "hours": {
            "hours": 1,
            "minutes": 1,
            "seconds": 1
          },
          "timePair": {
            "endTime": {
              "hour": 1,
              "minute": 1
            },
            "startTime": {
              "hour": 1,
              "minute": 1
            }
          }
        },
        "timeAllocationTypeUris": [
          "example"
        ],
        "uri": "example",
        "user": {
          "displayText": "example",
          "loginName": "example",
          "slug": "example",
          "uri": "example"
        }
      }
    ]
  }
}
```

### List time off

List a person's time off bookings that overlap a date range.

**Inputs**

- Person (`user_uri`, text, required): The person.
- From (`start_date`, date, required): The first day to include.
- To (`end_date`, date, required): The last day to include.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "approvalStatus": {
          "displayText": "example",
          "uri": "example"
        },
        "comments": "example",
        "displayText": "example",
        "endDateDetails": {
          "date": {
            "day": 1,
            "month": 1,
            "year": 1
          }
        },
        "owner": {
          "displayText": "example",
          "loginName": "example",
          "slug": "example",
          "uri": "example"
        },
        "slug": "example",
        "startDateDetails": {
          "date": {
            "day": 1,
            "month": 1,
            "year": 1
          }
        },
        "timeOffStatus": {
          "displayText": "example",
          "uri": "example"
        },
        "timeOffType": {
          "displayText": "example",
          "name": "example",
          "slug": "example",
          "uri": "example"
        },
        "totalDuration": {
          "days": 1,
          "hours": 1
        },
        "uri": "example"
      }
    ]
  }
}
```

### List time off types

List the time off types people can book.

**Inputs**: None.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": [
      {
        "displayText": "example",
        "name": "example",
        "slug": "example",
        "uri": "example"
      }
    ]
  }
}
```

### Reject a timesheet

Send a timesheet back to its owner to correct.

**Inputs**

- Timesheet (`timesheet_uri`, text, required): The timesheet, by the URI Get a timesheet returns.
- Comments (`comments`, text): A note kept with the timesheet's history.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Rename a client

Change a client's name.

**Inputs**

- Client (`client_uri`, text, required): The client.
- Name (`name`, text, required): The client's new name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Rename a project

Change a project's name.

**Inputs**

- Project (`project_uri`, text, required): The project.
- Name (`name`, text, required): The project's new name.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Reopen a timesheet

Reopen a submitted or approved timesheet.

**Inputs**

- Timesheet (`timesheet_uri`, text, required): The timesheet, by the URI Get a timesheet returns.
- Comments (`comments`, text): A note kept with the timesheet's history.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Submit a timesheet

Send a timesheet for approval.

**Inputs**

- Timesheet (`timesheet_uri`, text, required): The timesheet, by the URI Get a timesheet returns.
- Comments (`comments`, text): A note kept with the timesheet's history.
- Change reason (`change_reason`, text): Why it is being submitted again, when a resubmission needs a reason.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": null
  }
}
```

### Update a project

Change a project. Fields left empty keep their current value.

**Inputs**

- Project (`project_uri`, text, required): The project.
- Name (`name`, text): The project's name.
- Code (`code`, text): The project's code.
- Description (`description`, text): What the project is.
- Start date (`start_date`, date): When the project starts.
- End date (`end_date`, date): When the project ends.
- Time entry allowed (`time_entry_allowed`, true/false): Whether people can log time to the project.
- Estimated hours (`estimated_hours`, number): Hours the project should take. At least 0.
- Project leader (`leader_login_name`, text): The login name of the project leader.
- Status (`status_name`, text): The project status to set, by its name in Replicon.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "code": "example",
      "displayText": "example",
      "name": "example",
      "slug": "example",
      "uri": "example"
    }
  }
}
```

### Update a task

Change a task, or close it. Fields left empty keep their current value.

**Inputs**

- Project (`project_uri`, text, required): The project.
- Task (`task_uri`, text, required): The task.
- Name (`name`, text): The task's name.
- Code (`code`, text): The task's code.
- Description (`description`, text): What the task is.
- Start date (`start_date`, date): The first day time can be logged to the task.
- End date (`end_date`, date): The last day time can be logged to the task.
- Estimated hours (`estimated_hours`, number): Hours the task should take. At least 0.
- Time entry allowed (`time_entry_allowed`, true/false): Whether people can log time to the task.
- Closed (`is_closed`, true/false): Close the task, or reopen it.

**Outputs**

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

**Example output**

```json
{
  "data": {
    "d": {
      "code": "example",
      "displayText": "example",
      "name": "example",
      "parameterCorrelationId": "example",
      "uri": "example"
    }
  }
}
```
