Discussions

Ask a Question
Back to All

I have a Webhook forJobs and subscribed to the status field but it keeps firing for other changes

The webhook works but seems to just fire randomly when anything changes in the job. I only subscribed to job status. It's making it very hard to detect a Job Status change, which is what we are trying to do.

For example a recent call had these listed in the changed fields array:

1 status
2 work_order_date
3 completion_date
4 completion_actioned_by_uuid
5 edit_date

How do we only trigger when a work order is changed. We are getting calls to this webhook in the middle of then night when no one is using the system. I don't know how to tell which trigger is actually a change in status.