Attachment

The attachment is a collection object, which contains the files that are shared by the visitor during the conversation as a message.

​​

Sample Code:

Copiedif(!attachments.isEmpty())
{
	/*Attachment flow*/
	att = attachments.get(0);
	list = {att};
	// replace xxxx with your authtoken here
	attachmentResponse = invokeurl
	[
		url :"https://crm.zoho.com/crm/private/xml/Leads/uploadFile?authtoken=xxxx&scope=crmapi&id=2285439000000707001"
		type :POST
		parameters:Map()
		files:list
	];
	response.put("action","reply");
	response.put("replies",{"Attachment received"});
	return response;
}
This code is an example of how the attachment shared by a visitor is pushed to a lead inside Zoho CRM