# BlueFolder

> Run field service in BlueFolder: open, update and close service requests, assign technicians, comment, and manage customers with their contacts and locations.

App · 21 actions. Web page: https://docs.lodol.com/docs/integrations/bluefolder

## Actions

### Add contact

Add a contact person to a customer. Give a first or last name.

**Inputs**

- Customer (`customer_id`, text, required): The customer. Pick one, or give its ID.
- First name (`first_name`, text): The contact's first name.
- Last name (`last_name`, text): The contact's last name.
- Email (`email`, text): The contact's email address.
- Phone (`phone`, text): The contact's phone number.
- Mobile (`phone_mobile`, text): The contact's mobile number.
- Job title (`job_title`, text): The contact's job title.
- Primary contact (`is_primary`, true/false): Make them the customer's primary contact.

**Outputs**

- `contact_id` (text): The new contact's ID

**Example output**

```json
{
  "contact_id": "552"
}
```

### Add customer comment

Add a comment to a customer's record.

**Inputs**

- Customer (`customer_id`, text, required): The customer. Pick one, or give its ID.
- Comment (`comment`, text, required): The comment.
- As user (`comment_by_user_id`, text): Who the comment is from. Defaults to the token's user.

**Outputs**

- `comment_id` (text): The new comment's ID

**Example output**

```json
{
  "comment_id": "9001"
}
```

### Add location

Add a service location (an address) to a customer.

**Inputs**

- Customer (`customer_id`, text, required): The customer. Pick one, or give its ID.
- Location name (`location_name`, text, required): A name for the location, such as Warehouse.
- Street (`street`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- Postal code (`postal_code`, text): Postal or ZIP code.
- Country (`country`, text): Country.
- Zone (`zone`, text): The service zone, as named in your BlueFolder.
- Primary location (`is_primary`, true/false): Make it the customer's primary location.

**Outputs**

- `location_id` (text): The new location's ID

**Example output**

```json
{
  "location_id": "781"
}
```

### Add service request comment

Add a comment to a service request, optionally visible to the customer.

**Inputs**

- Service request ID (`service_request_id`, text, required): The service request's number, from 'List service requests' or an earlier step.
- Comment (`comment`, text, required): The comment.
- Customer can see it (`comment_is_public`, true/false): Show the comment to the customer.
- As user (`comment_by_user_id`, text): Who the comment is from. Defaults to the token's user.
- Email the customer (`notify_customer`, true/false): Whether the customer is emailed about it. Leave empty for the customer's own setting.

**Outputs**

- `comment_id` (text): The new comment's ID

**Example output**

```json
{
  "comment_id": "9002"
}
```

### Assign service request

Assign one or more users (technicians) to a service request, with a time slot if given.

**Inputs**

- Service request ID (`service_request_id`, text, required): The service request's number, from 'List service requests' or an earlier step.
- Users (`user_ids`, list, required): The users to assign, by ID (from 'List users').
- Start (`start`, date and time): When the work starts. Give it with the end.
- End (`end`, date and time): When the work ends.
- All day (`all_day`, true/false): Make it an all-day assignment.
- Comment (`comment`, text): A note for the assignees.
- Email the customer (`notify_customer`, true/false): Whether the customer is emailed about it. Leave empty for the customer's own setting.

**Outputs**

- `assignment_id` (text): The new assignment's ID

**Example output**

```json
{
  "assignment_id": "3004"
}
```

### Complete assignment

Mark an assignment done, with a completion comment if given.

**Inputs**

- Assignment ID (`assignment_id`, text, required): The assignment's ID, from 'Assign service request' or 'Get service request'.
- Comment (`comment`, text): A note about the completed work.
- Customer can see it (`comment_is_public`, true/false): Show the comment to the customer.
- Email the customer (`notify_customer`, true/false): Whether the customer is emailed about it. Leave empty for the customer's own setting.

**Outputs**

- `assignment_id` (text): The assignment
- `completed` (true/false): True once completed

**Example output**

```json
{
  "assignment_id": "3004",
  "completed": true
}
```

### Create customer

Create a customer, with a primary contact and location if given.

**Inputs**

- Name (`customer_name`, text, required): The customer's name.
- Contact first name (`contact_first_name`, text): The primary contact's first name.
- Contact last name (`contact_last_name`, text): The primary contact's last name.
- Contact email (`contact_email`, text): The primary contact's email address.
- Contact phone (`contact_phone`, text): The primary contact's phone number.
- Street (`street`, text): Street address.
- City (`city`, text): City.
- State (`state`, text): State or province.
- Postal code (`postal_code`, text): Postal or ZIP code.
- Country (`country`, text): Country.
- Customer type (`customer_type`, text): A type as named in your BlueFolder.
- Notes (`notes`, text): Notes about the customer.
- External ID (`external_id`, text): Your own unique ID for the customer.

**Outputs**

- `customer` (object): The new customer

**Example output**

```json
{
  "customer": {
    "comments": [],
    "contacts": [
      {
        "contactId": "552",
        "firstName": "Sam",
        "isPrimary": "true",
        "lastName": "Lee"
      }
    ],
    "customFields": [],
    "customerId": "1201",
    "customerName": "Amenity Arbor",
    "customerType": "Commercial",
    "dateTimeCreated": "2026-11-30T15:00:00",
    "externalId": "",
    "inactive": "false",
    "locations": [
      {
        "addressCity": "Austin",
        "isPrimary": "true",
        "locationId": "781",
        "locationName": "Main"
      }
    ],
    "notes": "",
    "website": ""
  }
}
```

### Create service request

Open a service request (a work order), for a customer or on its own.

**Inputs**

- Description (`description`, text, required): A short summary, up to 100 characters.
- Customer (`customer_id`, text): The customer it is for.
- Details (`detailed_description`, text): The full description of the work.
- Priority (`priority`, text): A priority as named in your BlueFolder, such as High.
- Type (`request_type`, text): A type as named in your BlueFolder, such as Repair.
- Due date (`due_date`, date): The day it is due.
- Due time (`due_time`, time): The time it is due that day, in your BlueFolder time zone. Defaults to midnight.
- Service manager (`service_manager_id`, text): The user managing the request.
- Status (`status`, text): Its first status, as named in your BlueFolder. Defaults to your first status.
- Reference number (`reference_no`, text): A reference number.
- External ID (`external_id`, text): Your own unique ID for it.
- Billable (`billable`, true/false): Whether the work is billable.
- Email the customer (`notify_customer`, true/false): Whether the customer is emailed about it. Leave empty for the customer's own setting.

**Outputs**

- `service_request` (object): The new service request

**Example output**

```json
{
  "service_request": {
    "assignments": [],
    "billableTotal": "0",
    "customFields": [],
    "customerId": "1201",
    "customerLocationCity": "Austin",
    "customerLocationStreetAddress": "100 Main St",
    "customerName": "Amenity Arbor",
    "dateTimeClosed": "",
    "dateTimeCreated": "2026-11-30T15:04:05",
    "description": "No heat in unit 4",
    "detailedDescription": "Tenant reports the furnace won't start.",
    "dueDate": "2026-12-02T17:00:00",
    "externalId": "",
    "log": [],
    "priority": "High",
    "referenceNo": "",
    "serviceManagerId": "33",
    "serviceRequestId": "10452",
    "status": "New",
    "type": "Repair"
  }
}
```

### Delete assignment

Remove an assignment from a service request.

**Inputs**

- Assignment ID (`assignment_id`, text, required): The assignment's ID.

**Outputs**

- `assignment_id` (text): The assignment deleted
- `deleted` (true/false): True once it is gone

**Example output**

```json
{
  "assignment_id": "3004",
  "deleted": true
}
```

### Delete contact

Delete a customer contact.

**Inputs**

- Contact ID (`contact_id`, text, required): The contact's ID, from 'Get customer'.

**Outputs**

- `contact_id` (text): The contact deleted
- `deleted` (true/false): True once it is gone

**Example output**

```json
{
  "contact_id": "552",
  "deleted": true
}
```

### Delete customer

Delete a customer.

**Inputs**

- Customer (`customer_id`, text, required): The customer. Pick one, or give its ID.

**Outputs**

- `customer_id` (text): The customer deleted
- `deleted` (true/false): True once it is gone

**Example output**

```json
{
  "customer_id": "1201",
  "deleted": true
}
```

### Delete location

Delete a customer location.

**Inputs**

- Location ID (`location_id`, text, required): The location's ID, from 'Get customer'.

**Outputs**

- `deleted` (true/false): True once it is gone
- `location_id` (text): The location deleted

**Example output**

```json
{
  "deleted": true,
  "location_id": "781"
}
```

### Get customer

Get one customer with their contacts, locations, comments and custom fields.

**Inputs**

- Customer (`customer_id`, text, required): The customer. Pick one, or give its ID.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "comments": [],
    "contacts": [
      {
        "contactId": "552",
        "firstName": "Sam",
        "isPrimary": "true",
        "lastName": "Lee"
      }
    ],
    "customFields": [],
    "customerId": "1201",
    "customerName": "Amenity Arbor",
    "customerType": "Commercial",
    "dateTimeCreated": "2026-11-30T15:00:00",
    "externalId": "",
    "inactive": "false",
    "locations": [
      {
        "addressCity": "Austin",
        "isPrimary": "true",
        "locationId": "781",
        "locationName": "Main"
      }
    ],
    "notes": "",
    "website": ""
  }
}
```

### Get service request

Get one service request with its customer, assignments, log, labor, materials and custom fields.

**Inputs**

- Service request ID (`service_request_id`, text, required): The service request's number, from 'List service requests' or an earlier step.

**Outputs**

- `service_request` (object): The service request

**Example output**

```json
{
  "service_request": {
    "assignments": [],
    "billableTotal": "0",
    "customFields": [],
    "customerId": "1201",
    "customerLocationCity": "Austin",
    "customerLocationStreetAddress": "100 Main St",
    "customerName": "Amenity Arbor",
    "dateTimeClosed": "",
    "dateTimeCreated": "2026-11-30T15:04:05",
    "description": "No heat in unit 4",
    "detailedDescription": "Tenant reports the furnace won't start.",
    "dueDate": "2026-12-02T17:00:00",
    "externalId": "",
    "log": [],
    "priority": "High",
    "referenceNo": "",
    "serviceManagerId": "33",
    "serviceRequestId": "10452",
    "status": "New",
    "type": "Repair"
  }
}
```

### Get service request history

List a service request's history: comments, edits and status changes, with who made them.

**Inputs**

- Service request ID (`service_request_id`, text, required): The service request's number, from 'List service requests' or an earlier step.

**Outputs**

- `count` (number): How many were returned
- `history` (list): The history entries

**Example output**

```json
{
  "count": 1,
  "history": [
    {
      "comment": "On the way",
      "description": "Comment added",
      "entryDate": "2026-11-30T15:05:00",
      "entryType": "comment",
      "id": "77",
      "userName": "Jo Tech"
    }
  ]
}
```

### List customers

List every customer with their ID, name and type.

**Inputs**: None.

**Outputs**

- `count` (number): How many were returned
- `customers` (list): The customers

**Example output**

```json
{
  "count": 1,
  "customers": [
    {
      "customerId": "1201",
      "customerName": "Amenity Arbor",
      "customerType": "Commercial",
      "externalId": "",
      "inactive": "false"
    }
  ]
}
```

### List items

List the item list: labor rates, parts and expenses with their costs and prices.

**Inputs**: None.

**Outputs**

- `count` (number): How many were returned
- `items` (list): The items

**Example output**

```json
{
  "count": 1,
  "items": [
    {
      "description": "Standard labor",
      "id": "15",
      "itemNo": "LAB-1",
      "type": "labor",
      "unitCost": "40",
      "unitPrice": "95"
    }
  ]
}
```

### List service requests

List service requests created (or closed) in a window of up to 180 days, optionally with one status or for one customer. Without a window, BlueFolder lists those created in the last 180 days.

**Inputs**

- From (`start`, date and time): The start of the window. Defaults to 30 days before the end.
- Until (`end`, date and time): The end of the window. Defaults to now.
- Window by (`date_field`, text): Whether the window is when requests were created or closed. One of: `dateTimeCreated` (When it was created (default)), `dateTimeClosed` (When it was closed).
- Status (`status`, text): Only this status, as named in your BlueFolder; open lists every request not closed.
- Customer (`customer_id`, text): Only this customer's requests.
- Reference number (`reference_no`, text): Only the request with this reference number.

**Outputs**

- `count` (number): How many were returned
- `service_requests` (list): The service requests

**Example output**

```json
{
  "count": 1,
  "service_requests": [
    {
      "customerId": "1201",
      "customerLocationCity": "Austin",
      "customerLocationStreetAddress": "100 Main St",
      "customerName": "Amenity Arbor",
      "dateTimeClosed": "",
      "dateTimeCreated": "2026-11-30T15:04:05",
      "description": "No heat in unit 4",
      "dueDate": "2026-12-02T17:00:00",
      "externalId": "",
      "priority": "High",
      "serviceManagerId": "33",
      "serviceRequestId": "10452",
      "status": "New",
      "type": "Repair"
    }
  ]
}
```

### List users

List the account's BlueFolder users (office staff and technicians).

**Inputs**: None.

**Outputs**

- `count` (number): How many were returned
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "users": [
    {
      "displayName": "Jo Tech",
      "firstName": "Jo",
      "inactive": "false",
      "lastName": "Tech",
      "userId": "33",
      "userName": "jo@example.com",
      "userType": "full"
    }
  ]
}
```

### Update customer

Rename a customer, change their type, notes or website, or mark them inactive. Only the fields given change.

**Inputs**

- Customer (`customer_id`, text, required): The customer. Pick one, or give its ID.
- Name (`customer_name`, text): A new name. Leave empty to keep it.
- Customer type (`customer_type`, text): A new type.
- Notes (`notes`, text): New notes, replacing the old ones.
- Website (`website`, text): A new website address.
- Inactive (`inactive`, true/false): On to mark the customer inactive.

**Outputs**

- `customer` (object): The customer

**Example output**

```json
{
  "customer": {
    "comments": [],
    "contacts": [
      {
        "contactId": "552",
        "firstName": "Sam",
        "isPrimary": "true",
        "lastName": "Lee"
      }
    ],
    "customFields": [],
    "customerId": "1201",
    "customerName": "Amenity Arbor",
    "customerType": "Residential",
    "dateTimeCreated": "2026-11-30T15:00:00",
    "externalId": "",
    "inactive": "false",
    "locations": [
      {
        "addressCity": "Austin",
        "isPrimary": "true",
        "locationId": "781",
        "locationName": "Main"
      }
    ],
    "notes": "",
    "website": ""
  }
}
```

### Update service request

Change a service request's description, priority, type, due date or manager, or move it to a new status with a comment (closing it, for example). Only the fields given change.

**Inputs**

- Service request ID (`service_request_id`, text, required): The service request's number, from 'List service requests' or an earlier step.
- Description (`description`, text): A new short summary.
- Details (`detailed_description`, text): The full description of the work.
- Priority (`priority`, text): A priority as named in your BlueFolder, such as High.
- Type (`request_type`, text): A type as named in your BlueFolder, such as Repair.
- Due date (`due_date`, date): The day it is due.
- Due time (`due_time`, time): The time it is due that day, in your BlueFolder time zone. Defaults to midnight.
- Service manager (`service_manager_id`, text): The user managing the request.
- New status (`new_status`, text): Move it to this status, as named in your BlueFolder.
- Status comment (`status_comment`, text): A comment saved with the status change.
- Customer can see it (`comment_is_public`, true/false): Show the comment to the customer.
- Email the customer (`notify_customer`, true/false): Whether the customer is emailed about it. Leave empty for the customer's own setting.

**Outputs**

- `service_request` (object): The service request

**Example output**

```json
{
  "service_request": {
    "assignments": [],
    "billableTotal": "0",
    "customFields": [],
    "customerId": "1201",
    "customerLocationCity": "Austin",
    "customerLocationStreetAddress": "100 Main St",
    "customerName": "Amenity Arbor",
    "dateTimeClosed": "",
    "dateTimeCreated": "2026-11-30T15:04:05",
    "description": "No heat in unit 4",
    "detailedDescription": "Tenant reports the furnace won't start.",
    "dueDate": "2026-12-02T17:00:00",
    "externalId": "",
    "log": [],
    "priority": "High",
    "referenceNo": "",
    "serviceManagerId": "33",
    "serviceRequestId": "10452",
    "status": "In Progress",
    "type": "Repair"
  }
}
```
