Pre-requisites:
Before beginning to script the code below, we must create a connection in Cliq with Zoho People. Once a connection is created and connected, you can use it in Deluge
integration tasks and
invoke URL scripts to access data from the required service.
Create a Zoho People default connection with any unique name with the scope - ZOHOPEOPLE.attendance.ALL and replace the connection link name in code snippet line no:11.
ⓘ Document for reference :
Connections in CliqTo post an alert to the channel, you need the unique names of both the channel and the bot, as we are using
zoho.cliq.postToChannelAsBot deluge task in the code below. Follow the steps to retrieve these names.
How to obtain or locate the channel unique name in Cliq?
Navigate to the top right corner of the preferred channel and locate the three dots. Click it.
In the menu that appears, select "Channel info" and a pop-up will open, displaying detailed channel information. Hover over the "Connectors" section and click it.
Under "API Parameters," you will find the channel unique name.
How to obtain or locate the bot unique name in Cliq?
Navigate to "Bots & Tools", and under the bots section, select the bot you prefer.
Copy the API endpoint URL. The bot's unique name is located after "bots/" and before the next slash "/".
Example: URL:
https://cliq.zoho.com/company/2345678/api/v2/bots/attendancetracker/message The bot unique name in the above example is attendancetracker