#1605: Description of objects and parameters for triggers
Отредактирована: сегодняIn Swarmica, the following events are used as triggers:
ArticleEvent - Article Events
CustomFieldEvent - Custom Field Events
KCSEvent - KCS Events
TicketEvent - Ticket Events
UserEvent - User Events
Each event passes certain parameters that can be used in scripts. These parameters are described below:
ArticleEvent
| Parameter | What it does | Values |
|---|---|---|
| event | passes what Event occurred with the Article | "0" - "Unknown" |
| "1" - "Article created" | ||
| "2" - "Article user segment added" | ||
| "3" - "Article published" | ||
| "4" - "Article unpublished" | ||
| "5" - "Article deleted" | ||
| "6" - "Article undeleted" | ||
| "7" - "Article author changed" | ||
| "8" - "Article flagged" | ||
| "9" - "Article unflagged" | ||
| "10" - "Agent commented on article" | ||
| "11" - "Customer commented on article" | ||
| "12" - "Agent comment changed" | ||
| "13" - "Agent comment deleted" | ||
| "14" - "Customer comment deleted" | ||
| "15" - "Article revision added" | ||
| "16" - "Article status changed" | ||
| "17" - "Article user segment deleted" | ||
| responsible | passes the Executor of the Event | Object user |
| date | passes the date of the Event | |
| old_value | passes the old values of the Event parameters | |
| new_value | passes the new values of the Event parameters | |
| article | passes the Article with which the Event occurred | Object article |