-
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
Dreamforce 2022 Highlights - Everything You Need To Know
The Salesforce’s annual event, “Dreamforce” was held in San Francisco from September 21 to 23, completing their 20 years of magnificence. This year’s event was…
Best Practices For Defining Business Processes In Salesforce
The meaning of the term business process and the advancement of this definition since its origination by Adam Smith in 1776 has prompted such territories…
Salesforce Administration Services: Why Every Business Needs Them in Today's Competitive Landscape
In today's fast-paced and highly competitive business landscape, companies are constantly seeking ways to streamline their operations, improve customer engagement, and drive revenue growth. Salesforce,…
Popular Salesforce Videos
Salesforce Marketing Cloud on Core for Nonprofits
Marketing Cloud Growth and Advanced Editions are powerful tools that can help you manage your campaigns, analyze your results, and connect with your customers/donors/volunteers. Let's…
1st Year as a Salesforce Business Analyst
If you are interested in a Salesforce Career, check out Talent Stacker. This is what I used when I first started and ended up joining…
Salesforce Service Cloud Implementation
Salesforce Service Cloud offers a long list of powerful tools to help you realize the potential of your service team. With the endless opportunities for…