-
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
Best Salesforce CPQ Implementation Practices to Follow
Understanding what the customer needs, keeping an account of all their custom preferences, and pricing is a huge task in itself. Sales teams begin with…
How To Be A Salesforce Developer?
From 2014, unarguably the best way to start learning Salesforce is through Trailhead. Think of it as the best university to enroll yourself in for…
Salesforce to Salesforce Integration Using REST API
After learning the REST API, it's always good to do some practice to make the concept more clear. In this Blog, we will Integrate Two…
Popular Salesforce Videos
How to Get Your Data In and Get Insights Out | Salesforce Essentials
Organize all your data with Salesforce Essentials. With a quick and easy import, you’ll be able to manage your business and watch it grow. Essentials…
Getting Information from your Salesforce Account for a Salesforce Connection
Watch this video to learn how to get information from your Salesforce Account for a Salesforce Connection. Do let us know in the comment section…
Salesforce Admin Mock Interview Questions and Answers
In this Salesforce Mock Interview Series, I'm dropping the seventh podcast/video of the Salesforce Admin Mock Interview Questions and Answers. This will help you to…