Skip to main content

Using Searches

A search looks records up in Facilio so later steps can use them. When you add an action step, Zapier lists Facilio searches under the Search heading.

Facilio searches for work orders.
Facilio searches for work orders.

How Searches Behave in Zapier​

A search can find many records, but by default Zapier passes only the first one to the next steps. Two options that Zapier adds at the end of every search step decide what happens:

The end of a List search: what comes back, and Zapier's two search options.
The end of a List search: what comes back, and Zapier's two search options.
OptionChoices
Successful if no search results are found?False (default): when nothing is found, the run stops at this step and shows as Stopped / halted in Zap History; the later steps do not run. True: the run continues, and the later steps get empty values.
If multiple search results are foundReturn first search result (default): later steps get the first record (the newest, for Facilio searches). Stop: the run halts when more than one record matches. Return all results as line items: later steps get every record as a list (line items), for example to write each one to a spreadsheet row.
What to do when several records match.
What to do when several records match.

List Records​

Examples: List Work Orders, List Service Requests, List Vendors, List Records (Custom Module).

Finds the records of a module that match the filters you set, newest first. For a custom module, choose it first in Custom Module.

Filters​

Each filter field is one field of the module. Only records that match every filter you fill in are returned; empty filters are ignored. Fill in at least one filter (or Search Text, or an Advanced Filter); otherwise the step fails.

Filters of List Work Orders: one field per Facilio field.
Filters of List Work Orders: one field per Facilio field.
  • System fields: the most used fields of the module, plus the number (work orders), Status and Created Time. To filter on another system field, use Advanced Filters.
  • Custom fields: every custom field of the module, under their own heading.
  • Date fields come as a pair: ... Is After and ... Is Before. Fill one to get an open range, both for a window.
    Due Date Is After / Is Before.
    Due Date Is After / Is Before.
    Work Order Number, Status and Created Time filters.
    Work Order Number, Status and Created Time filters.
  • Lookup fields (Site, Staff, Vendor ...): pick a record, or switch to Custom and map its ID.
  • Picklists (Category, Priority, Status ...): pick an option.

The exact value formats are in Entering Values and Filters.

Text Fields Match​

How the text filters above are compared: Exactly (default), Contains, Starts with or Ends with. Other kinds of fields always match exactly. Text matching ignores capital letters.

Search Text​

Finds records whose main field (the subject of a work order or service request, the name of a vendor or site) contains this text.

Advanced Filters​

For conditions the fields above cannot express: other comparisons (greater than, not equal, between), several values, empty fields, relative dates, or system fields not listed above. Each row is one condition:

  • Left: the field's API name, followed by the operator in brackets, for example subject(contains). A name without brackets means is.
  • Right: the value, for example lobby. For operators that need no value (is_empty, today ...), type yes.
Two advanced filters: subject contains 'lobby', and created this week.
Two advanced filters: subject contains 'lobby', and created this week.

All rows, the filter fields and Search Text are combined with AND. Every operator for every data type, with examples, is in Advanced Filters operators. The help of the Advanced Filters field also lists the other fields of the module you can use, with their API names.

What Comes Back​

OptionWhat it does
Fields to ReturnLeave empty to get the standard fields of the module. Custom fields are not among them: to get custom fields, choose every field you need here, standard ones included. The record ID always comes back. Line items are never part of a list; use Get Record for those.
Lookup Details to IncludeA list gives each lookup field (Site, Vendor, Staff ...) as an ID only. Choose up to 5 lookup fields here to also get their name and details.
Maximum RecordsHow many matching records to read, newest first: 1 to 200. Default 25. Together with Zapier's Return all results as line items, this is how many records the next steps receive.
Testing List Work Orders: the newest matching work order.
Testing List Work Orders: the newest matching work order.

Get Record​

Examples: Get Work Order, Get Service Request, Get Vendor, Get Record (Custom Module).

Reads one record in full: every system and custom field, line items (quotes, purchase orders, invoices), and the name and details of its lookups.

  • Give the record's ID: pick it from the list, or map it from an earlier step (see Finding the Record).
  • For work orders, Look Up By also lets you give the Work Order Number.

Use Get when you know which record you want; use List when you need to find records by their values.

If no record has that ID, the step returns no result, and Zapier's Successful if no search results are found? option decides whether the run continues.

List Work Order Quotes​

Lists the quotes raised against a work order, newest first. Fill Work Order ID (pick or map it).

List Record Comments​

Lists the comments on a record of any module, standard or custom, newest first.

FieldHow to fill it
ModuleThe module of the record, for example Work Orders. Custom modules are listed too.
Record IDThe record's ID. Pick it, or map it from a trigger.
External IDOptional. Returns only the comment that carries this External ID (the ID it has in your other system). Use it to check whether a comment was already copied.

Each comment comes with its ID, text (plain and HTML), External ID, Shared With (the portals it is shared with, by link name such as tenant; empty when the comment is private), time and author.

Facilio keeps External IDs on comments of service requests and work orders, and on attachments of service requests, work orders and invoices.

List Record Attachments​

Lists the attachments on a record of any module, newest first, each with its file, so a later step can copy the files. The fields are the same as for comments: Module, Record ID, and optional External ID.

Each attachment comes with its ID, file name, content type, size, External ID, time, who added it, and File.

List Service Request Private / Public Notes​

List Service Request Private Notes lists the private notes in the conversation of a service request (seen by your team only). List Service Request Public Notes lists the public notes (the ones the requester sees). Both are newest first.

Fill Service Request ID. Each note comes with its ID, type, text (plain and HTML), recipients, author, time, and its attachments, each with its file.

List Work Order / Service Request Activities​

List Work Order Activities and List Service Request Activities list the activity history of a work order or a service request, newest first: who changed what, and when. It is the same history you see on the record's History tab in Facilio: creation, field changes, status changes and comments.

FieldHow to fill it
Look Up By and Work Order ID / Number, or Service Request IDWhich record. See Finding the Record.
Kinds of ActivityOptional. Returns only these kinds: Field changed, Status changed, Record created, Comment, Approval, SLA due date set, SLA escalation, Task updated, Created by a planned maintenance, System message, Other. Leave empty for all.
Maximum RecordsHow many of the newest entries to read, 1 to 200 (default 50). The kinds above are picked from these.

Each entry comes with its Kind of Activity, Summary, Time, Done By (ID and name) and Changes, one readable line per change, for example Status: Submitted -> Assigned.

If the Facilio servers of your region do not offer the activity history of service requests yet, the step says so; ask Facilio support when it will be available for your region.

Get Attachment File​

Gets the file of an attachment on a record, so later steps can upload it somewhere else.

FieldHow to fill it
Return AsFile (default): later steps receive the file itself, ready for a file or attachment field. Download link: later steps receive a web link that opens the file without signing in to Facilio. The link stops working after about 48 hours, so use it right away and do not store it.
ModuleThe module of the record the attachment is on.
Record IDThe record's ID. Pick it, or map it from a Facilio trigger.
Attachment IDOptional. Leave empty for the newest attachment of the record. From a New ... Attachment trigger, map Attachment ID to get exactly that file.

The step returns the File (or Download Link), file name, size, content type, file ID, and the module, record ID, attachment ID and External ID.

You may not need this search

The New ... Attachment triggers and List Record Attachments already include each file. Use Get Attachment File when you start from something else, for example a scheduled Zap or a status change.