Skip to Content
0

Uploading attachments to SuccessFactors using ODATA API?

Feb 01 at 11:00 AM

131

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers