Salesforce Interview Questions and Answers
Question: Explain the use of the 'Database.upsert()' method in Apex.Answer: The 'Database.upsert()' method in Apex is used to insert or update records based on a specified external ID. It allows developers to perform upsert operations in a single call, reducing the number of DML statements. |
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: