Triggers in polls

Triggers in polls

Started a new poll

Triggers the outgoing webhook whenever a poll is started.
Trigger type: Poll_Created

  1. {
  2.   "payload": {
  3.     "id": "12266000000493174",
  4.     "url": "https://connect.zoho.com/portal/ourintranet/stream/12266000000493174",
  5.     "title": "",
  6.     "createdTime": "17 Nov 2021, 03:38 PM",
  7.     "createdTimeInMillis": "1637143715698",
  8.     "options": [
  9.       {
  10.         "option": "Line Icon",
  11.         "url": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023007",
  12.         "thumbnailUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023007&size=thumb",
  13.         "downloadUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023007&size=original"
  14.       },
  15.       {
  16.         "option": "Fill Icon",
  17.         "url": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023008",
  18.         "thumbnailUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023008&size=thumb",
  19.         "downloadUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023008&size=original"
  20.       },
  21.       {
  22.         "option": "No Icon"
  23.       }
  24.     ],
  25.     "partition": {
  26.       "type": "1",
  27.       "id": "12266000000002010",
  28.       "name": "michelle@zylker,com",
  29.       "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  30.     },
  31.     "mentions": {
  32.       "user": [],
  33.       "partition": [
  34.         {
  35.           "id": "12266000000008040",
  36.           "name": "Textbook - Feedback",
  37.           "url": "https://connect.zoho.com/portal/ourintranet/group/2-group"
  38.         }
  39.       ],
  40.       "orgGroup": []
  41.     },
  42.     "tags": [],
  43.     "embedAttachments": {
  44.       "image": {},
  45.       "file": {},
  46.       "video": {}
  47.     },
  48.     "plainContent": "Hi @Textbook - Feedback team \n \nPlease choose the product icon",
  49.     "richContent": "Hi @<a href='https://connect.zoho.com/portal/ourintranet/group/2-group' target='blank'>Textbook - Feedback</a> team <br/> <br/>Please choose the product icon",
  50.     "rawContent": "Hi <parition:mention>12266000000008040:Textbook - Feedback</parition:mention> team <br/> <br/>Please choose the product icon",
  51.     "attachments": []
  52.   },
  53.   "triggeredBy": {
  54.     "type": "0",
  55.     "id": "61683612",
  56.     "name": "Michelle",
  57.     "emailId": "michelle@zylker,com",
  58.     "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  59.   },
  60.   "triggerType": "Poll_Created",
  61.   "triggeredTime": "17 Nov 2021, 03:38 PM",
  62.   "triggeredTimeInMillis": "1637143715947",
  63.   "scope": {
  64.     "id": "12266000000002002",
  65.     "name": "Zylker",
  66.     "url": "https://connect.zoho.com/portal/ourintranet"
  67.   }
  68. }

  

Updated the poll  

Triggers the outgoing webhook when a poll is updated.
Trigger type: Poll_Updated

 

  1. {
  2.   "payload": {
  3.     "id": "12266000000493174",
  4.     "url": "https://connect.zoho.com/portal/ourintranet/stream/12266000000493174",
  5.     "title": "",
  6.     "createdTime": "17 Nov 2021, 03:38 PM",
  7.     "createdTimeInMillis": "1637143715698",
  8.     "options": [
  9.       {
  10.         "option": "Line Icon",
  11.         "url": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023007",
  12.         "thumbnailUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023007&size=thumb",
  13.         "downloadUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023007&size=original"
  14.       },
  15.       {
  16.         "option": "Fill Icon",
  17.         "url": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023008",
  18.         "thumbnailUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023008&size=thumb",
  19.         "downloadUrl": "https://connect.zoho.com/pulse/api/pollImage?scopeID=12266000000002002&fileId=881354000000023008&size=original"
  20.       },
  21.       {
  22.         "option": "No Icon"
  23.       }
  24.     ],
  25.     "partition": {
  26.       "type": "1",
  27.       "id": "12266000000002010",
  28.       "name": "michelle@zylker,com",
  29.       "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  30.     },
  31.     "mentions": {
  32.       "user": [],
  33.       "partition": [
  34.         {
  35.           "id": "12266000000008040",
  36.           "name": "Textbook - Feedback",
  37.           "url": "https://connect.zoho.com/portal/ourintranet/group/2-group"
  38.         }
  39.       ],
  40.       "orgGroup": []
  41.     },
  42.     "tags": [],
  43.     "embedAttachments": {
  44.       "image": {},
  45.       "file": {},
  46.       "video": {}
  47.     },
  48.     "plainContent": "Hi @Textbook - Feedback team \n \nPlease choose the product icon. Based on the vote we can decide the icon",
  49.     "richContent": "Hi @<a href='https://connect.zoho.com/portal/ourintranet/group/2-group' target='blank'>Textbook - Feedback</a> team <br/> <br/>Please choose the product icon. Based on the vote we can decide the icon",
  50.     "rawContent": "Hi <parition:mention>12266000000008040:Textbook - Feedback</parition:mention> team <br/> <br/>Please choose the product icon. Based on the vote we can decide the icon",
  51.     "attachments": []
  52.   },
  53.   "triggeredBy": {
  54.     "type": "0",
  55.     "id": "61683612",
  56.     "name": "Michelle",
  57.     "emailId": "michelle@zylker,com",
  58.     "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  59.   },
  60.   "triggerType": "Poll_Updated",
  61.   "triggeredTime": "17 Nov 2021, 03:39 PM",
  62.   "triggeredTimeInMillis": "1637143796936",
  63.   "scope": {
  64.     "id": "12266000000002002",
  65.     "name": "Zylker",
  66.     "url": "https://connect.zoho.com/portal/ourintranet"
  67.   }
  68. }

 

Deleted the poll

Triggers the outgoing webhook when a poll is deleted.
Trigger type: Poll_Deleted

  

  1. {
  2.   "payload": {
  3.     "id": "12266000000464405"
  4.   },
  5.   "triggeredBy": {
  6.     "type": "0",
  7.     "id": "61683612",
  8.     "name": "Michelle",
  9.     "emailId": "michelle@zylker,com",
  10.     "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  11.   },
  12.   "triggerType": "Poll_Deleted",
  13.   "triggeredTime": "17 Nov 2021, 03:40 PM",
  14.   "triggeredTimeInMillis": "1637143817455",
  15.   "scope": {
  16.     "id": "12266000000002002",
  17.     "name": "Zylker",
  18.     "url": "https://connect.zoho.com/portal/ourintranet"
  19.   }
  20. }

 

Commented on the poll

Triggers the outgoing webhook when a new comment is added on the poll.
Trigger type: Poll_Comment_Created

 

  1. {
  2.   "payload": {
  3.     "id": "12266000000493223",
  4.     "parentCommentId": "",
  5.     "url": "https://connect.zoho.com/portal/ourintranet/stream/12266000000493174/12266000000493223",
  6.     "streamId": "12266000000493174",
  7.     "streamUrl": "https://connect.zoho.com/portal/ourintranet/stream/12266000000493174",
  8.     "createdTime": "17 Nov 2021, 03:41 PM",
  9.     "createdTimeInMillis": "1637143895866",
  10.     "partition": {
  11.       "type": "1",
  12.       "id": "12266000000002010",
  13.       "name": "michelle@zylker,com",
  14.       "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  15.     },
  16.     "mentions": {
  17.       "user": [
  18.         {
  19.           "id": "61683612",
  20.           "name": "Michelle",
  21.           "emailId": "michelle@zylker,com",
  22.           "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  23.         }
  24.       ],
  25.       "partition": [],
  26.       "orgGroup": []
  27.     },
  28.     "tags": [],
  29.     "embedAttachments": {
  30.       "image": {
  31.         "12266000000493224": {
  32.           "fileId": "12266000000493224",
  33.           "size": "728024",
  34.           "name": "Continous Failure.png",
  35.           "contentType": "image/png",
  36.           "downloadUrl": "https://connect.zoho.com/pulse/api/downloadFile?scopeID=12266000000002002&fileId=12266000000493224",
  37.           "extension": "png",
  38.           "url": "https://connect.zoho.com/pulse/api/viewImage?scopeID=12266000000002002&fileId=12266000000493224&size=original",
  39.           "thumbnailUrl": "https://connect.zoho.com/pulse/api/viewImage?scopeID=12266000000002002&fileId=12266000000493224",
  40.           "imgWidth": "766",
  41.           "imgHeight": "400"
  42.         }
  43.       },
  44.       "file": {},
  45.       "video": {}
  46.     },
  47.     "plainContent": "@Michelle  \nShall we add below image as another option in the poll? \n",
  48.     "richContent": "@<a href='https://connect.zoho.com/portal/ourintranet/profile/61683612' target='blank'>Michelle</a>  <br/>Shall we add below image as another option in the poll? <br/>",
  49.     "rawContent": "<user:mention>61683612:Michelle</user:mention>  <br/>Shall we add below image as another option in the poll? <br/><embed type='image' fileId='12266000000493224' >",
  50.     "attachments": []
  51.   },
  52.   "triggeredBy": {
  53.     "type": "0",
  54.     "id": "62592875",
  55.     "name": "Emma Stone",
  56.     "emailId": "emmastone@zylker.com",
  57.     "url": "https://connect.zoho.com/portal/ourintranet/profile/62592875"
  58.   },
  59.   "triggerType": "Poll_Comment_Created",
  60.   "triggeredTime": "17 Nov 2021, 03:41 PM",
  61.   "triggeredTimeInMillis": "1637143896278",
  62.   "scope": {
  63.     "id": "12266000000002002",
  64.     "name": "Zylker",
  65.     "url": "https://connect.zoho.com/portal/ourintranet"
  66.   }
  67. }

  

Poll comment updated

Triggers the outgoing webhook when a poll comment is edited.
Trigger type: Poll_Comment_Updated


  1. {
  2.   "payload": {
  3.     "id": "12266000000493247",
  4.     "parentCommentId": "12266000000493223",
  5.     "url": "https://connect.zoho.com/portal/ourintranet/stream/12266000000493174/12266000000493247",
  6.     "streamId": "12266000000493174",
  7.     "streamUrl": "https://connect.zoho.com/portal/ourintranet/stream/12266000000493174",
  8.     "createdTime": "17 Nov 2021, 03:42 PM",
  9.     "createdTimeInMillis": "1637143940988",
  10.     "partition": {
  11.       "type": "1",
  12.       "id": "12266000000002010",
  13.       "name": "michelle@zylker,com",
  14.       "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  15.     },
  16.     "mentions": {
  17.       "user": [
  18.         {
  19.           "id": "62592875",
  20.           "name": "Emma Stone",
  21.           "emailId": "emmastone@zylker.com",
  22.           "url": "https://connect.zoho.com/portal/ourintranet/profile/62592875"
  23.         }
  24.       ],
  25.       "partition": [],
  26.       "orgGroup": []
  27.     },
  28.     "tags": [],
  29.     "embedAttachments": {
  30.       "image": {},
  31.       "file": {},
  32.       "video": {}
  33.     },
  34.     "plainContent": "Sure @Emma Stone  will add the option",
  35.     "richContent": "Sure @<a href='https://connect.zoho.com/portal/ourintranet/profile/62592875' target='blank'>Emma Stone</a>  will add the option",
  36.     "rawContent": "Sure <user:mention>62592875:Emma Stone</user:mention>  will add the option",
  37.     "attachments": []
  38.   },
  39.   "triggeredBy": {
  40.     "type": "0",
  41.     "id": "61683612",
  42.     "name": "Michelle",
  43.     "emailId": "michelle@zylker,com",
  44.     "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
  45.   },
  46.   "triggerType": "Poll_Comment_Updated",
  47.   "triggeredTime": "17 Nov 2021, 03:42 PM",
  48.   "triggeredTimeInMillis": "1637143950471",
  49.   "scope": {
  50.     "id": "12266000000002002",
  51.     "name": "Zylker",
  52.     "url": "https://connect.zoho.com/portal/ourintranet"
  53.   }
  54. }

 

Poll comment deleted

Triggers the outgoing webhook when a poll comment is deleted.
Trigger type: Poll_Comment_Deleted

 

  1. {
  2.   "payload": {
  3.     "streamId": "12266000000493174",
  4.     "id": "12266000000493233"
  5.   },
  6.   "triggeredBy": {
  7.     "type": "0",
  8.     "id": "62592875",
  9.     "name": "Emma Stone",
  10.     "emailId": "emmastone@zylker.com",
  11.     "url": "https://connect.zoho.com/portal/ourintranet/profile/62592875"
  12.   },
  13.   "triggerType": "Poll_Comment_Deleted",
  14.   "triggeredTime": "17 Nov 2021, 03:41 PM",
  15.   "triggeredTimeInMillis": "1637143915553",
  16.   "scope": {
  17.     "id": "12266000000002002",
  18.     "name": "Zylker",
  19.     "url": "https://connect.zoho.com/portal/ourintranet"
  20.   }
  21. }

 

For queries or feedback, get in touch with us at support@zohoconnect.com. We're happy to help!