こちらのWebhookの設定では、どのグループでメンバーが追加、削除されたら処理を実行するかを指定する必要があります。また、API経由でWebhookを実行する場合、「partitionIds」は必ず指定する必要があります。
グループに対するメンバーの追加
指定のグループに新しいメンバーが追加されると、送信Webhookの処理が実行されます。
実行条件の種類: Member_Added_In_Group
- {
- "payload": {
- "id": "1006052107",
- "name": "Carol Clark",
- "emailId": "Carolclark@zohotest.com",
- "url": "https://connect.zoho.com/portal/ourintranet/profile/1006052107",
- "memberType": "0",
- "userStatus": "active",
- "userProfile": {
- "firstName": "Carol Clark",
- "lastName": "",
- "timeZone": "Asia/Kolkata",
- "customFields": {
- "12266000000430041": {
- "name": "Custom Field 3",
- "type": "DATE"
- },
- "12266000000430035": {
- "name": "Custom Field 2",
- "type": "TEXTAREA"
- },
- "12266000000430029": {
- "name": "Custom Field 1",
- "type": "TEXT"
- },
- "12266000000430073": {
- "name": "Custom Field 6",
- "type": "FILE"
- },
- "12266000000430047": {
- "name": "Custom Field 4",
- "type": "SELECTBOX"
- },
- "12266000000430059": {
- "name": "Custom Field 5",
- "type": "MULTI_SELECTBOX"
- }
- }
- }
- },
- "partition": {
- "type": "2",
- "id": "12266000000008040",
- "name": "Textbook - Feedback",
- "url": "https://connect.zoho.com/portal/ourintranet/group/2-group"
- },
- "triggeredBy": {
- "type": "0",
- "id": "61683612",
- "name": "Michelle",
- "emailId": "michelle@zylker.com",
- "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
- },
- "triggerType": "Member_Added_In_Group",
- "triggeredTime": "17 Nov 2021, 12:30 PM",
- "triggeredTimeInMillis": "1637132454072",
- "scope": {
- "id": "12266000000002002",
- "name": "Zylker",
- "url": "https://connect.zoho.com/portal/ourintranet"
- }
- }
グループからのメンバーの削除
指定のグループからメンバーが削除されると、送信Webhookの処理が実行されます。
実行条件の種類: Member_Removed_From_Group
- {
- "payload": {
- "id": "62592875",
- "name": "Emma Stone",
- "emailId": "emmastone@zylker.com",
- "url": "https://connect.zoho.com/portal/ourintranet/profile/62592875",
- "memberType": "0",
- "userStatus": "active",
- "userProfile": {
- "firstName": "Rajesh Birla",
- "lastName": "+1",
- "timeZone": "Asia/Kolkata",
- "customFields": {
- "12266000000430035": {
- "name": "Custom Field 2",
- "type": "TEXTAREA",
- "value": "Custom Field Value"
- },
- "12266000000430041": {
- "name": "Custom Field 3",
- "type": "DATE",
- "value": "05 Nov 2021"
- },
- "12266000000430073": {
- "name": "Custom Field 6",
- "type": "FILE",
- "value": {
- "fileId": "12266000000491135",
- "size": "89134",
- "name": "image.png",
- "contentType": "image/png",
- "downloadUrl": "https://connect.zoho.com/pulse/api/downloadFile?scopeID=12266000000002002&fileId=12266000000491135",
- "extension": "png"
- }
- },
- "12266000000430029": {
- "name": "Custom Field 1",
- "type": "TEXT",
- "value": "Custom Field Value"
- },
- "12266000000430047": {
- "name": "Custom Field 4",
- "type": "SELECTBOX",
- "value": "12266000000430049"
- },
- "12266000000430059": {
- "name": "Custom Field 5",
- "type": "MULTI_SELECTBOX",
- "value": [
- {
- "id": "12266000000430061",
- "name": "Option 1"
- },
- {
- "id": "12266000000430063",
- "name": "Option 2"
- }
- ]
- }
- }
- }
- },
- "partition": {
- "type": "2",
- "id": "12266000000008040",
- "name": "Textbook - Feedback",
- "url": "https://connect.zoho.com/portal/ourintranet/group/2-group"
- },
- "triggeredBy": {
- "type": "0",
- "id": "61683612",
- "name": "MIchelle",
- "emailId": "michelle@zylker.com",
- "url": "https://connect.zoho.com/portal/ourintranet/profile/61683612"
- },
- "triggerType": "Member_Removed_From_Group",
- "triggeredTime": "17 Nov 2021, 12:35 PM",
- "triggeredTimeInMillis": "1637132704038",
- "scope": {
- "id": "12266000000002002",
- "name": "Zylker",
- "url": "https://connect.zoho.com/portal/ourintranet"
- }
- }