Skip to content

Instantly share code, notes, and snippets.

@aorborc
Last active November 21, 2022 19:46
Show Gist options
  • Save aorborc/91af5c46500a3f3c31b759187a343c8f to your computer and use it in GitHub Desktop.
Save aorborc/91af5c46500a3f3c31b759187a343c8f to your computer and use it in GitHub Desktop.
Upload a file from Zoho Creator or any Zoho Service to Zoho Desk ticket, via deluge
ticket_attachment_api_url = "https://desk.zoho.com/api/v1/tickets/" + Desk_Ticket_ID + "/attachments";
header_map = Map();
header_map.put("orgId","yourOrgID");
yourFile = invokeurl
[
url :"httpsdownloadURL"
type :GET
];
yourFile.SetParamName('file');
desk_ticket_attachment_resp = invokeurl
[
url :ticket_attachment_api_url
type :POST
files:yourFile
headers:header_map
connection:"YourDeskConnection in Creator. Scope: Desk.tickets.UPDATE or Desk.tickets.ALL"
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment