-
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
Why Salesforce is the Most Preferable CRM for Businesses?
In the realm of CRM, Salesforce has emerged as one of the most powerful and embraced solutions with maximum users acceptance rate. The market share…
Employee Onboarding Made Easy With Walk-Throughs on Salesforce-Powered Communities
We are currently in the midst of a learning revolution. Technology has given us the tools to build learning programs that meet individual learners where…
Upgrade from Salesforce Nonprofit Success Pack to Salesforce Nonprofit Cloud
As the needs of nonprofits evolve, so does the technology that supports them. Salesforce recently introduced the new Nonprofit Cloud, an upgrade that promises to…
Popular Salesforce Videos
Unleash Your Salesforce Process Automation With This New Connector For Salesforce Lightning Platform
Unleash your Salesforce process automation with this new Connector for Salesforce Lightning Platform (a set of 130 Activities and 5 wizards that allow you to…
Powering Dynamic Gamification on Salesforce Communities With ScoreNotch
Gamifying your online community helps you drive highly-engaging user experiences. While you can host your community on Salesforce Experience Cloud, there are limitations with regard…
9 Stages of Identity & Access Management Lifecycle | Salesforce Tutorial
Grow your architect skills and expertise in the area of Identity and Access Management. This video explains the 9 stages of Identity & Access Management…