You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Zoran Regvart (JIRA)" <ji...@apache.org> on 2018/02/27 12:01:00 UTC

[jira] [Resolved] (CAMEL-11637) Unable to assign null value to a Salesforce object field

     [ https://issues.apache.org/jira/browse/CAMEL-11637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zoran Regvart resolved CAMEL-11637.
-----------------------------------
    Resolution: Implemented

With Camel 2.21 if you specify {{serializeNulls}} endpoint property or provide same named message header, with value {{true}} and if using JSON data format – {{null}} values will be present in the JSON sent to Salesforce API.

 

> Unable to assign null value to a Salesforce object field
> --------------------------------------------------------
>
>                 Key: CAMEL-11637
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11637
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-salesforce
>    Affects Versions: 2.19.1
>            Reporter: Roman Kalashnikov
>            Assignee: Zoran Regvart
>            Priority: Major
>             Fix For: 2.21.0
>
>
> When in Salesforce I have an object with a nullable field, and want to set its value to null, there's no way to do it.
> Actually it's enough to pass empty string ("") or null as field value to SF REST API to set field to null.
> Both
> {code}
> {
>   "PoBox__c": null
> }
> {code}
> and
> {code}
> {
>   "PoBox__c": ""
> }
> {code}
> are valid.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)