user | Details of the user executing the menu. |
entity | Details of the entity in which the menu is being used. |
network | Details of the network in which the menu is being used. |
Attribute | Property | Description |
result | Options: success / failure Default option: success | The status of the function execution. |
message | Data type: String Maximum limit: 250 characters | A message informing the user about the status of the menu execution. |
entityUrl = entity.get("url"); message = "Hi HR team, \n Check out this [Zoho Connect Post] (" + entityUrl + ")";
//hrdepartment - channel unique name from channel's connector section
//zohocliqoauth - Connection created with required oauthscopes to perform post to channel action
response = zoho.cliq.postToChannel("hrdepartment",message,"zohocliqoauth");
info response;
responseMap = map();
if(response.containKey("status") && response.get("status") == "success")
{
responseMap.put("result", "success");
responseMap.put("message", "Post shared successfully to the HR Department Channel");
}
else
{
responseMap.put("result", "failure");
responseMap.put("message", "Sorry, something went wrong. We're unable to share the post.");
}
return responseMap;
Attribute | Type | Description | Pre-requisite |
title | String (25) | The title of the form | Mandatory |
hint | String (250) | A small description explaining the purpose of the form. | Mandatory |
fields | JSONArray | Array of fields collecting user information. (Detailed explanation in Table 3) | Mandatory |
buttonLabel | JSONObject | The submit buttons in the form. (Detailed explanation in Table 5) | Optional |
Attribute | Property | Description | Supported field types | Pre-requisite | ||||||||||||
type | textBox | textArea | select | multiSelect | date | dateTime | Choose the type of field that you'd need. | All fields | Mandatory | ||||||||||||
name | Supports only alphanumeric characters and underscore | A unique identifier for the parameter. The information collected from the user in this field will be associated with the identifier. The name field also acts as a unique ID for each field. | All fields | Mandatory | ||||||||||||
label | String (250) | The title of the field that has to be displayed in the form. | All fields | Mandatory | ||||||||||||
hint | String (200) | A short description to explain what the field is for. | All fields | Optional | ||||||||||||
placeholder | String (100) | The placeholder text that has to be displayed within the field input box. | textBox | textArea | multiSelect | select | Optional | ||||||||||||
value |
| To set the field value for each field in the form. | All fields | Optional | ||||||||||||
maxLimit | Range: 2-5000 | To set a limit for the maximum number of characters entered by the user. | textBox | textArea | Optional | ||||||||||||
minLimit | Range: 2-5000 | To set a limit for the minimum number of characters entered by the user. | textBox | textArea | Optional | ||||||||||||
mandatory | Available values: true | false Default value: true | Set this attribute as true, if the user must fill this field in order to submit the form. | All fields | Optional | ||||||||||||
readOnly | Available values: true | false Default value: false | Set this attribute as true, if the user cannot change the value in this field. | textBox | textArea | Optional | ||||||||||||
hide | Available values: true | false Default value: false | Define whether to show the field to the user or not. | All fields | Optional | ||||||||||||
dataSource | Available values: user | group | network | board | To load the field options from the user's Connect data. | select | multiSelect | Optional | ||||||||||||
triggerOnChange | Available values: true | false Default value: false | Set this value as true, if user input in this field should trigger the form change handler | All fields | Optional | ||||||||||||
lookup | Available values: true | false Default value: false | Set this value as true, if an input made in this field should trigger the field lookup handler | select | multiSelect | Optional | ||||||||||||
triggerLength | Range: 1-5 Default value: 1 | Set the number of characters to be given by the user after which the field lookup handler should be triggered. | select | multiSelect (If lookup property is set true) | Optional | ||||||||||||
options | JSONArray Maximum Size: 3000 | Array of options to be displayed in the dropdown. (Detailed explanation in Table 4) | select | multiSelect | Optional |
Attribute | Type | Description | Prerequisite |
id | String (100) Only Alphanumeric characters and underscore. | Unique string value to identify an option. | Mandatory |
label | String (100) | Name of the option listed in the form. This is the name that is visible to the user. | Mandatory |
value | String (100) | Value of the option | Optional |
iconUrl | URL (500) | URL of the Icon (if any) that has to displayed next to the option | Optional |
Attribute | Type | Description | Prerequisite |
cancel | String (15) Default Value: Cancel | The label of the cancel button can be renamed. | optional |
done | String (15) Default Value: Done | The label of the submit button can be renamed. | optional |
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.