on 01-18-2018 1:20 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.