You need to sign in to do that
Don't have an account?

Why setFieldsToNull not work on Contact fields
I am working on an API that updates the Contact table. I use the setFieldsToNull(nullFields[]) for fields that need to set to null but got the nullPointerException. I coded the same way in my another API that updates the Account table fields, it worked fine.
Can anyone tell me why the setFieldsToNull do not work on Contact fields?
Thanks
KarenK

It works for me, where are you getting your Null Pointer Exception? Can you post your code. Seems like it may just be a coding issue.

Thank you, Ender, you bright my eyes. It was syntax error.