Organization events

The following organization events for Amazon EventBridge include:

Custom Field Changed

Custom Field Changed events occur when the value of a organization-created custom field is changed by an agent.

Zendesk supports a range of custom field types such as text, numbers, and dates. For more information about custom fields, see About custom field types.

Custom Field Changed events includes a custom_field object with three parameters:

  • id - The Zendesk ID of the custom field
  • title - The custom field name
  • field_type - The field data type (such as date, text, integer, and multi-select)

Custom Field Changed - Checkbox

An event where the value of a custom field checkbox is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1000,
        "title": "VIP",
        "field_type": "checkbox"
      },
      "previous": false,
      "current": true,
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous boolean value
  • current - The current boolean value

Custom Field Changed - Date

An event where the value of a date custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1001,
        "title": "Due Date",
        "field_type": "date"
      },
      "previous": "2020-01-25",
      "current": "2020-02-25",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous date and time
  • current - The current date and time

Custom Field Changed - Decimal

An event where the value of a decimal custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1002,
        "title": "Total Amount",
        "field_type": "decimal"
      },
      "previous": "99.99",
      "current": "100.00",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous numerical value
  • current - The current numerical value

Custom Field Changed - Integer

An event where the value of an integer custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1003,
        "title": "Total",
        "field_type": "integer"
      },
      "previous": "10",
      "current": "100",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous numerical value
  • current - The current numerical value

Custom Field Changed - Regex

An event where the value of a regex custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1004,
        "title": "Email",
        "field_type": "regexp"
      },
      "previous": null,
      "current": "[email protected]",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous regex value
  • current - The current regex value

Custom Field Changed - Tagger

An event where the value of a tagger custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
     "custom_field": {
        "id": 1005,
        "title": "Dropdown Field",
        "field_type": "tagger"
      },
      "previous": "choice_1",
      "current": "choice_2",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous string value
  • current - The current string value

Custom Field Changed - Text

An event where the value of a text custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1006,
        "title": "Text Field",
        "field_type": "text"
      },
      "previous": null,
      "current": "Text Message",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous string value
  • current - The current string value

Custom Field Changed - Text Area

An event where the value of a multiline text custom field is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Custom Field Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Custom Field Changed",
      "custom_field": {
        "id": 1234,
        "title": "MultiLine",
        "field_type": "textarea"
      },
      "previous": "This is a\nmultiline message.\nHello there.",
      "current": "This is a\nmultiline message.",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "aws",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - The previous multiline text
  • current - The current multiline text

External ID Changed

An event when organization's external ID changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: External ID Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "External ID Changed",
      "previous": "AU123",
      "current": "CN123",
      "organization": {
        "id": 12345,
        "external_id": "CN123",
        "name": "zendesk",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • previous - Previous external ID of the organization
  • current - Current external ID of the organization

Organization Created

An event when Support organization is created.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Organization Created",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-20T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-20T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Organization Created",
      "organization": {
        "id": 12345,
        "external_id": "AU123",
        "name": "zendesk",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-20T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

Tags Changed

An event when tags on the Support organization is changed.

Example

{
  "version": "0",
  "id": "31187aa5-67d2-4eea-a921-38535bf6ec3b",
  "detail-type": "Support Organization: Tags Changed",
  "source": "aws.partner/zendesk.com/9242270/default",
  "account": "123456789012",
  "time": "2020-01-30T22:55:31Z",
  "region": "us-east-1",
  "resources": ["Support Organization"],
  "detail": {
    "organization_event": {
      "meta": {
        "version": "1.0",
        "occurred_at": "2020-01-30T22:55:29Z",
        "ref": "1-1234567890",
        "sequence": {
          "id": "35D52F7D44640033CCCE4A5F1ADDB2AA",
          "position": 1,
          "total": 9
        }
      },
      "type": "Tags Changed",
      "tags_added": ["chat"],
      "tags_removed": ["enterprise"],
      "organization": {
        "id": 12345,
        "external_id": "CN123",
        "name": "zendesk",
        "created_at": "2020-01-20T22:55:29Z",
        "updated_at": "2020-01-30T22:55:29Z",
        "shared_tickets": true,
        "shared_comments": true,
        "group_id": 98738
      }
    }
  }
}

The event contains the following unique properties in the organization_event object:

  • tags_added - Tags added to the organization
  • tags_removed - Tags removed from the organization