Skip to main content

Files

The value for this input datatype will be available in the session object in the following format:

Attribute NameDatatype Description
filesListTo be treated as file objects 

Note:

  • This data type is not supported in the output parameter of the plug
  • It allows only file inputs that are received by the visitor via files card. Custom files cannot be provided as input. 

Sample Code:

Format received in input "session" object:

Copied{
	"input_files":{
		"files":[
		"James photo.jpg","James license.jpg"
		]
	}
}

The sample Plug script to attach a file into CRM

Copiedinput_files = session.get("input_files").get("files");
info zoho.crm.attachFile("Leads","1243614000000471072",input_files.get(0),"crmattachment");