dhoechst/Salesforce-Test-Factory

createSObjectList fails if Name is an Auto Number

Closed this issue · 0 comments

tet3 commented

Discovered while trying out Custom Related Lists. Tests fail with error System.SObjectException: Field Name is not editable, pointing to the line where the Name is updated.

Would testing the field for isEditable be a sufficient indicator that the name field is an autonumber and can safely be allowed to autogenerate?