-
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
Enhance Business with Salesforce Implementation Services
Most of the companies nowadays are looking forward to the best results within the shortest span of time. With the introduction of Salesforce, achieving the…
Salesforce Introduces Einstein Visual Search For Commerce Cloud
When Salesforce acquired Demandware in 2016 for $2.8 billion, that’s when Salesforce Commerce Cloud came into action. As more and more industries started getting into…
Get Access Token From Google Calendar API Through Postman | Salesforce Developer Guide
Get Access token from Google Calendar API through Postman While working with integration with third parties, it is very very important to get the access…
Popular Salesforce Videos
Salesforce Consumer Goods Cloud Demo
Salesforce Consumer Goods Cloud is an intelligent, seamless B2B CRM solution specifically designed for the consumer goods industry. Watch this video to learn more.
Salesforce Development Master Training | Salesforce Development Course
Shrey Finally launched the most awaited Salesforce Development Master Training. Features of the course are: Learn Salesforce Development from Scratch with more than 100 on-demand…
What is Salesforce Commerce Cloud? | Salesforce Video Tutorial
Do you know what is Salesforce Commerce Cloud? Formerly called Demandware, it is a cloud-based service for unifying the way businesses engage with customers over…