Convert supports uploading 3 file types: Cover Letter, CV and Attachment. These files can have a maximum size of 5 mb and can be in .pdf and .docx formats.
Cover Letter and CV file types are linked to the built-in fields of the SAP JobApplication entity: coverLetter and resume respectively.
The third file type, Attachment, should be linked to a SAP JobApplication custom field of type multiAttachmentSelection. This field needs to be created on SuccessFactors in order to allow the upload of additional files through Convert. The name of the field should be "attachment1".
Files are uploaded by making an upsert request to the SAP OData API.
CV
Example request to the SAP OData API:
curl -X POST .../odata/v2/upsert \
-H 'Authorization: Bearer AccessToken' \
-d '{
{
"__metadata": {
"type": "SFOData.JobApplication",
"uri": "JobApplication(<applicationId>L)",
},
"resume": {
"__metadata": {
"type": "SFOData.Attachment",
},
"externalId": "0",
"module": "RECRUITING",
"moduleCategory": "RESUME",
"fileContent": "base64-encoded file",
"fileName": "cv.pdf",
}
}'
Cover Letter
Example request to the SAP OData API:
curl -X POST .../odata/v2/upsert \
-H 'Authorization: Bearer AccessToken' \
-d '{
{
"__metadata": {
"type": "SFOData.JobApplication",
"uri": "JobApplication(<applicationId>L)",
},
"coverLetter": {
"__metadata": {
"type": "SFOData.Attachment",
},
"externalId": "0",
"module": "RECRUITING",
"moduleCategory": "COVERLETTER",
"fileContent": "base64-encoded file",
"fileName": "cover-letter.pdf",
}
}'
Attachment
Example request to the SAP OData API:
curl -X POST .../odata/v2/upsert \
-H 'Authorization: Bearer AccessToken' \
-d '{
{
"__metadata": {
"type": "SFOData.JobApplication",
"uri": "JobApplication(<applicationId>L)",
},
"attachment1": {
"__metadata": {
"type": "SFOData.Attachment",
},
"externalId": "0",
"module": "RECRUITING",
"moduleCategory": "ATTACHMENTS",
"fileContent": "base64-encoded file",
"fileName": "attachment.pdf",
}
}'
