Upload Files to Zoho Recruit
The zoho.recruit.uploadFile() task can be executed to upload file attachments, for example - an image, to any of the supported modules of Zoho Recruit. By placing it in the required workflow section of Zoho Creator, the process of uploading files to Zoho Recruit can easily be automated as per requirement. Lets say you have a Zoho Creator form which holds details related to a candidate including file upload field types for uploading images. To upload these file attachments simultaneously to our Zoho Recruit, you can execute zoho.recruit.uploadFile() task in the “On Success” workflow section. This will upload specified file attachments to Zoho Recruit whenever the Zoho Creator form is submitted with candidate’s documents. Further details on how to execute this task are explained below.
- Job Openings
- Client Contacts
<response> - is the map variable returned by Zoho Recruit as response.
<id> - ID of the record in Zoho Recruit where the file attachment will be uploaded. (mandatory)
<fileName> - name of the file attachment. (mandatory)
<type> - attachment type just for reference purpose. Example - resume/image/document etc. (mandatory)
<moduleName> - the module to which the file must be uploaded. Example - Candidates/Job Openings etc. (optional)
Following is a sample script that can be added in a Zoho Creator form to upload files to the Candidates module in Zoho Recruit. Let's say we have a Creator form to upload a candidate's photo. You can add the following script to On Success workflow section of the Creator Form so that whenever this form is submitted, images are simutaneously uploaded to Zoho Recruit.
response - is the map variable returned by Zoho Recruit as response.
1687000000116035 - ID of record in Zoho Recruit where the image will be uploaded.
john.png - refers to the file name.
image - refers to the file type.
Candidates - refers to the chosen module.
Response returned by Zoho Recruit as map: