Discussions

Ask a Question
Back to all

Missing Webhook Events for Image Attachments from Mobile App

We have a custom integration between ServiceM8 and our CRM tool that relies on webhook events to process image attachments. We uploaded 33 photos to the job. Out of which, 3 were uploaded from desktop and we got the webhook events for those. But the other 30 were uploaded from Servicem8 app for which we didn't receive any webhook event.


Below are our current webhook subscriptions:

[
  {
    "type": "object",
    "object": "Job",
    "callback_url": "https://xxxx/api/v1",
    "fields": [
      "billing_address",
      "status",
      "description",
      "job_address",
      "total_invoice_amount",
      "customfield_site_visit_completed"
    ],
    "unique_id": "",
    "active": true
  },
  {
    "type": "object",
    "object": "jobActivity",
    "callback_url": "https://xxxx/api/v1",
    "fields": [
      "start_date",
      "end_date"
    ],
    "unique_id": "",
    "active": true
  },
  {
    "type": "object",
    "object": "dboAttachment",
    "callback_url": "https://xxxx/api/v1",
    "fields": [
      "file_type"
    ],
    "unique_id": "",
    "active": true
  },
  {
    "type": "object",
    "object": "dboNote",
    "callback_url": "https://xxxx/api/v1",
    "fields": [
      "note",
      "object_name"
    ],
    "unique_id": "",
    "active": true
  },
  {
    "type": "object",
    "object": "Material",
    "callback_url": "https://xxxx/api/v1",
    "fields": [
      "name",
      "active"
    ],
    "unique_id": "",
    "active": true
  }
]

  1. Is the Attachment object fully supported for webhook subscriptions, and are there known issues with events for mobile app uploads?
  2. Are there specific fields other than file_type that we should include in the webhook subscription for reliable attachment event notifications