Donwload zoho forms attachments and send it on zoho crm

PHOTO EMBED

Wed Sep 18 2024 14:59:05 GMT+0000 (Coordinated Universal Time)

Saved by @usman13

void Download_Medical_Certificate(string Recid_Medical_Certificate, string Medical_Certificate)
{
if(Medical_Certificate != "")
{
	path2 = Medical_Certificate.get(0).get("path");
	info "Path:" + path2;
	download_Medical_Certificate1 = invokeurl
	[
		url :path2
		type :GET
		connection:"developerforms"
	];
	info "DOWNLOAD: " + download_Medical_Certificate1;
	download_Medical_Certificate1.setParamName("file");
	info download_Medical_Certificate1;
	attach_file = invokeurl
	[
		url :"https://www.zohoapis.com/crm/v3/Medical_Certificates/" + Recid_Medical_Certificate + "/Attachments"
		type :POST
		files:download_Medical_Certificate1
		connection:"zoho_claim_shield_crm_connection"
	];
	info "Attaching files = " + attach_file;
}
}
content_copyCOPY