Skip to Content
avatar image
Former Member

Uploading attachments to SuccessFactors using ODATA API?

Hi,

Want to build a scenario using SAP PI in which i need to upload an attachment into Recruiting module using JobApplication API.

I tried posting the following xml to SFSF Adapter:

<?xml version="1.0" encoding="UTF-8"?>

<JobApplication>

<JobApplication>

<applicationId>10567</applicationId>

<generalAttachment> <Attachment>

<viewable>false</viewable>

<userId>TESTAdmin</userId>

<softDelete>false</softDelete>

<searchable>false</searchable>

<module>RECRUITING</module>

<imageConvertInProgress>fals

e</imageConvertInProgress>

<fileName>Test.docx</fileName>

<fileContent>DFGHJKL</fileContent>

<deprecable>false</deprecable>

<deletable>false</deletable>

</Attachment>

</generalAttachment>

</JobApplication>

</JobApplication>

Getting below error:

org.apache.olingo.odata2.api.edm.EdmSimpleTypeException: The metadata do not allow a null value.


Can you please help?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers