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

Setting a date field to nothing doesn't get sent in the json #372

Open
djlaney3 opened this issue Apr 28, 2020 · 3 comments · May be fixed by #376
Open

Setting a date field to nothing doesn't get sent in the json #372

djlaney3 opened this issue Apr 28, 2020 · 3 comments · May be fixed by #376

Comments

@djlaney3
Copy link

When using UpdateAsync, and passing an object with a datefield set to null or nothing, the json for that fields does not get sent up to salesforce. How do we set a datefield to not have a value?

@stephen-wond
Copy link

Does this give you a '' is not a valid value for the type xsd:date error?
It what I am getting when trying to do a BulkConstants.OperationType.Update update.

@djlaney3
Copy link
Author

No, when I set it to nothing (vb.net), the SDK does not send the value in the JSON payload. When you set it to a value, it gets included in the payload.

@jeffolmstead
Copy link

This still seems to be an issue, was originally discussed here: #197 and there was a pull request here: #268 but it doesn't look like all of the pull request was taken into the source so I don't believe there is yet a solution outside of running your own fork of the code...

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