forcedotcom / forcedotcom/wsc

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

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
276
Forks
223
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.