-
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
Hire Salesforce Developer: In house vs. Outsource?
Confused While Hiring? In house vs. Outsource Salesforce Professional When it comes to hiring a Salesforce expert for the companies the major question that arises…
Drive Higher Channel Sales and Manage Partner Relationships with DemandBlue's Salesforce Experience Cloud Implementation
Regardless of your industry, it is apparent that today’s customers expect “as given” a digital self-service capability for their B2B buying process. Your channel partners…
What Does The Future Hold For Salesforce?
As one of the most exciting Cloud platforms around, the Salesforce suite of applications is beginning to find widespread applicability in a rapidly increasing number…
Popular Salesforce Videos
Sculptor CPQ for Salesforce
Sculptor CPQ (Configure-Price-Quote) for Salesforce CRM-based businesses allows to reduce the length of the sales cycle and generate quotes 2X faster. Smart and intuitive product…
When Salesforce is Down/Offline - Keep on Going With Zoho
Wtahc this video and learn how to keep your organization moving when Salesforce is DOWN or OFFLINE. Do let us know if you have any…
Introduction To Salesforce | Salesforce Training Videos For Beginners
Are you confused to choose the best edition tool? For CRM and Branding then here is the information for you! Salesforce is one of the…