cancel
Showing results for 
Search instead for 
Did you mean: 

Upsert (POST) into RECRUITMENT from PI

former_member329266
Discoverer
0 Kudos

Hi, I have a requirement where I have to upsert an attachment into the Candidate entity and I'm using a sfsf odata receiver channel using PI 7.4 dual stack and SFSF addon 1.0 . My upsert was successful when I tried first to insert fields like the name, but fails when I try to insert the attachment.

Because my field attachment is type Attachment I have to pass all the Attachment fields that are not nullable , this is a picture of the structure I'm sending:

If i don't give these fields with values the response is that I'm sending null metadata:

If I send values that exist in SFSF it gives :

Why do I have to give all the values when I can upsert from POSTMAN or SOAPUI giving only the fields that I want to upsert. I tried to post the json payload that I use with POSTMAN and set the passTrough parameter but it does not work. Any help is apreciated. Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

ReenaK
Participant
0 Kudos

Hi,

We had a similar issue that ODATA API does not perform upsert operation when all the mandatory fields are not passed, though works through POSTMAN. Please find the below note.

Note 2495560 - "Field required for external candidate for templateId, with the index 0" when Upserting via ODATA API - Multi Stage Application Enabled

I believe this happens in multistage application. The workaround provided in the note might help.

Thanks,

Reena

former_member329266
Discoverer
0 Kudos

We have defined the fields as not required but the problem is that they are not nullable and if we don't pass a value fails with the error that metadada does not allow a null value , functional says this cannot be changed. For the time being we are using a rest channel for the upsert but we would like to use the sfsf channel. Thank you for your help.