How to set an object field to null for a REST service especially in camel-salesforce component?

Solution Verified - Updated -

Issue

We are using the Camel Salesforce Component to interact with Salesforce. We have a scenario where we need to clear the content of a specific field.

To do so again the Salesforce REST API directly, we need to provides that field in the request with a null value, e.g. clear out the Fax field of the Account, it has to be like:

{
"Id": "0012800000mm2eoAAA",
"Name" : "nullfax",
"Fax": null
}

Doing this through the Camel Salesforce Component does not seem to be possible. Is there supposed to be another method using Camel Salesforce Component to clear a field on a SObject?

Environment

  • Red Hat JBoss Fuse 6.2.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.