-
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
Salesforce Admin Tips For A User-Friendly Org
When we talk about the term user-friendly, what comes to your mind? Obviously, something that is not difficult for the user to use? Now when…
5 Questions to Help Decide If a Salesforce Certification Is for You
Salesforce is used in nearly every industry and countless companies today, and its reach continues to expand. Salesforce dominates because the Customer Relationship Management (CRM)…
Salesforce Financial Services Cloud Spring '23 Highlights
Shake off those winter blues with the new features coming in Salesforce's Spring '23 for Financial Services Cloud. Whether it's ARC enhancements, interaction summary automation,…
Popular Salesforce Videos
Revenue Sharing with Salesforce | Unlocking Profit Potential | Live Stream Highlights
This extract from our live webinar uncovered how this powerful platform can revolutionize your revenue generation and maximize your profits. Discover the untapped potential of…
Skills for Salesforce Field Service | Optimize Customer Service for Businesses | Salesforce Webinar
One way to optimize customer service operations is by having the right technician for the right job. How? Skills for Salesforce Field Service is the…
What it Means to be a Salesforce Developer
In this video, Salesforce with Polina describes what it means to be a Salesforce Developer. She goes on to describe the different types of Salesforce…