Developers
Example: FieldSignal to Limble work orders
This example turns each corrective action raised in FieldSignal into a work order (a "task") in Limble CMMS. It uses one FieldSignal webhook and one Limble API call.
The FieldSignal side follows these pages exactly. The Limble side is written against Limble's published API v2 documentation, not tested against a live Limble account. Check each Limble field against Limble's API documentation before you rely on it. Limble and Limble CMMS are trademarks of their owner. FieldSignal is not affiliated with Limble, and Limble has not reviewed or endorsed this example.
What you need
- A FieldSignal webhook address on your server, subscribed to
corrective_action.created, and its signing secret. - Limble API credentials (a client id and secret, generated by a Limble administrator).
- A table on your side that maps each FieldSignal project id to the Limble location id where its work belongs.
- A store for the FieldSignal message ids you have handled, and for the Limble task id created for each corrective action.
1. Receive and check the message
When FieldSignal sends corrective_action.created:
- Check the signature as described in Webhooks. Refuse the request if it fails.
- If you have already handled this
FieldSignal-Event-Id, answer 200 and stop. - Answer 200 straight away, then do the rest of the work in the background.
The message's data holds the corrective action and its project:
{
"corrective_action": {
"id": "00000000-0000-4000-8000-000000000020",
"reference": "CA-0001",
"title": "Replace damaged guard rail",
"status": "open",
"severity": "major",
"category": "safety",
"due_date": "2026-12-01",
"visit_id": "00000000-0000-4000-8000-000000000021",
"assignee": null
},
"project": { "id": "00000000-0000-4000-8000-000000000022", "name": "Example project" }
}
2. Fetch the full corrective action, if you want its description
The message carries a snapshot without the description. To include it when the action's visit_id is set, fetch that visit's corrective actions and pick the one with the same id:
curl "https://api.fieldsignal.com/functions/v1/api/v1/visits/00000000-0000-4000-8000-000000000021/corrective_actions" \
-H "Authorization: Bearer $FIELDSIGNAL_API_KEY"
Follow next_cursor if the visit has more than one page.
3. Create the Limble task
Limble's API uses Basic authorization with your client id and secret. Create the task with POST https://api.limblecmms.com/v2/tasks. Limble's documentation lists name, locationID, type and due as required:
| Limble field | From FieldSignal |
|---|---|
name |
reference and title, for example "CA-0001 Replace damaged guard rail". |
locationID |
Your mapping of the FieldSignal project.id. |
type |
2, Limble's code for an unplanned work order. |
due |
due_date as a Unix timestamp at the end of that day in your site's time zone (the example uses 23:59:59 UTC); if due_date is null, a default you choose. |
priority (optional) |
Your mapping of severity to one of your Limble priority levels. |
curl -X POST https://api.limblecmms.com/v2/tasks \
-u "$LIMBLE_CLIENT_ID:$LIMBLE_CLIENT_SECRET" \
-H "Content-Type: application/json" \
-d '{"name":"CA-0001 Replace damaged guard rail","locationID":12,"type":2,"due":1796169599}'
Limble answers 201 with the new task's taskID. Store it against the FieldSignal corrective action id.
4. Later events
Subscribe the same address to corrective_action.resolved, corrective_action.closed, corrective_action.reopened and corrective_action.cancelled if Limble should follow the action's progress. Each message's data.transition gives the status change and any note. Look up the stored taskID and update the task through Limble's own task operations, as Limble's documentation describes.
Things to handle
- A message can arrive twice or out of order. Skip ids you have handled, and when the order matters, fetch the action's current status from the API.
assignee.nameis null when the person has left the team. Match people by id, not by name.- If Limble refuses a request, keep the FieldSignal message id so you can try again; once you have answered 200, FieldSignal treats the message as delivered and normally does not send it again.
Documentation version 1.0.1