Upload files to Zoho Recruit
Table of Contents
Overview
Upload files to records in Zoho Recruit. This task is based on the Zoho Recruit API - Upload File
Syntax
Parameter | Description | Data type |
KEY-VALUE | is the variable which will hold the response returned by Zoho Recruit. | |
TEXT | is the ID of the record to which the file will be attached. Learn how to fetch the ID of a record after creating it or fetching it. | |
<file> | FILE | refers to the file that needs to be attached. The file size must not exceed 20 MB. |
<type> | TEXT | refers to the type of file that is being attached. Supported values: Resume or Others. |
<module_name> | TEXT | is the name of the module in Zoho Recruit, where the file will be attached. Following are the names of applicable modules.
|
<connection> | TEXT | The link name of the Zoho Recruit connection. Note:
|
Example
When the following snippet gets executed in Zoho Creator, the specified file gets attached to the specified record in Zoho Recruit.
response = zoho.recruit.uploadFile("1687000000116035", input.file, "Others", "Candidates", "recruit_connection");
where:
"response"
"1687000000116035"
input.file
"Others"
"Candidates"
"recruit_connection"
Response Format
The response returned is of the following format:
"message":"File has been attached successfully",
"Created Time":"2015-11-19 18:18:25",
"Modified By":"dinesh.d",
"Id":"1687000000116035",
"Modified Time":"2015-11-19 18:18:25",
"Created By":"dinesh.d"
}