Last active
November 21, 2022 19:46
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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