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

Using setField() in setType() (SObject) prevents insert/update of Account.Type #45

Open
gsmithfarmer opened this issue Dec 11, 2013 · 0 comments

Comments

@gsmithfarmer
Copy link

Since SObject.setType() uses setField() I do not believe it is possible to update/insert Account.type. An attempt to do so throws an "unknown sobject -- try adding __c to the object name" type error (if setType is called before setField("type", ...). If setType is called after setField("type",..." the the update to Account.type is ignored.

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

1 participant