Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to clear custom field value #17

Closed
jmalonzo opened this issue Jun 26, 2014 · 1 comment
Closed

Unable to clear custom field value #17

jmalonzo opened this issue Jun 26, 2014 · 1 comment

Comments

@jmalonzo
Copy link

I'm trying to update (using the update method) a custom field value to set it to Null/Empty on a Contact object but this doesn't seem to work. I've tried setting the value to None, '' (empty string), 'null' and both failed to clear or reset the value for the field (by looking in the Contact profile in the Salesforce UI).

Is there a way to set a custom field value to Null? Is this even supported?

Thanks

@superfell
Copy link
Owner

you would set a field called fieldsToNull on your sobject dictionary with an array of field names to set to null. If you can't get it working let me know and i'll put together an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants