-
Get the inserted record id in a upsert call?
I am doing following DML in my controller
upsert accountList Eid__c;
After upsert, I need the Id of only inserted Account
for(Account insertedAccount : accountList){
System.debug('AccountId>>>'+insertedAccount.id+'<<<<AccountId');
}
I am getting id of all account.
Log In to reply.
Popular Salesforce Blogs
Learn About Users Permissions and Access in Salesforce
1. User Permissions User permissions determine what tasks users can perform and what features users can access. For example, users with the “View Settings and…
How to Write a Test Class in Salesforce? The Salesforce Developer Guide
In any development, testing is a very important step as it tells us about how good the development has been done and for that we…
Salesforce CPQ Certified Specialists - All You Need To Know
Salesforce CPQ is a program developed for providing correct pricing for any product configuration scenarios as a selling tool for the businesses. It also allows…
Popular Salesforce Videos
Running a New Report in Salesforce
After logging into Salesforce, Go to the reporting section by clicking on the Reports tab at the top of the page, Click on the New…
Salesforce Lightning Design System (SLDS) and Components
The Salesforce Lightning Design System (SLDS) helps you build applications with the look and feel of Lightning Experience without writing a single line of CSS.…
Salesforce To RDS Integration Through Dell Boomi | Salesforce Tutorial
Salesforce to RDS integration through Dell Boomi. This tutorial will cover the following points - 1. Introduction Take a quick glimpse at integrating accounts from…