Link List

The link list datatype allows sending a list of URLs as dynamic URLs to the Share Links card in the Codeless bot builder. 

Note: The Link list is available only on the Output parameter.

Attribute NameDatatype Description
icon URLThe display icon (50x50/less than 1 MB) near the hyperlinked text [(1) - reference]  
targetString"_blank|_self" 
The "_blank" opens the link in a new tab/window, and the "_self" opens the link in the same tab/window
text*StringThe hyperlink text  [(2) - reference]
URL*URLThe URL to be opened/redirected.

Reference

Syntax

Copied[
  {
    "icon": "${icon_url}",
    "target": "_blank|_self",
    "text": "Link 1",
    "url": "${url}"
  },
  {
    "icon": "${icon_url}",
    "target": "_blank|_self",
    "text": "Link 1",
    "url": "${url}"
  },
  {
    "icon": "${icon_url}",
    "target": "_blank|_self",
    "text": "Link 1",
    "url": "${url}"
  }
]

Sample code

Copiedif(session.containsKey("email"))
{
	email = session.get("email").get("value");
}
// Invoke API to get the tracking URL 
tracking_link = response.get("tracking").get("url");
link_icon = "https://zoho.com/sites/zweb/images/salesiq/bot/link-icon.png";
link_list = {{"icon": link_icon,"target":"_blank","text":"Click here","url":link}};
response = Map();
response.put("trackingLink",link_list);
return response;