Whenever I upsert a contact, it is created with a corresponding account. For example, if I create ‘Contact A’, an account with name ‘Contact A’ will also be created and will contain ‘Contact A’ as a contact. Is there any way to upsert only the contact without the account?
Thanks!
The relationship between the Account and Contact objects is what Salesforce calls a “Master-Detail relationship” (although as superfell has pointed out, it’s not a true Master/Detail relationship). When a “master” record is deleted, all associated “details” are also deleted, and typically a record of the detail type cannot be created without being associated to a master; however, in this case a Contact record can be inserted without being associated to an Account assuming there are no custom restrictions in place. It sounds like your Account record is being created by a BeforeInsert trigger on the Contact object.