Upload files to Zoho Recruit

Upload files to Zoho Recruit

Overview

Upload files to records in Zoho Recruit.

Syntax

<variable> = zoho.recruit.uploadFile(<record_ID>, <File>, <type>, <module_name>, <connection>);

where,

ParameterDescriptionData type

<variable> 

KEY-VALUE

is the variable which will hold the response returned by Zoho Recruit.

<record_ID>

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.

  • Candidates
  • Job Openings
  • Contacts
  • Clients
  • Interviews
  • Custom Module

<connection>

(optional)*

TEXT

specifies the name if the Zoho Recruit connection.

Note: This param is not supported in Zoho Creator, and is optional in all other Zoho services.

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.Photo, "Others", "Candidates");

where,

ParamExplanation
responseis variable which will hold the response returned by Zoho Recruit.

1687000000106001

is the ID of the record to which the file will be attached.

input.PhotoPhoto is the image field type in Zoho Creator Form
"Others"refers to the type of file that is being attached
"Candidates"is the name of the module in Zoho Recruit, where the file will be attached

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"
}

Related Links

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com