-
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
Getting Into Salesforce? Tips and Tricks You Need to Get your Hands on!
Are you considering getting into Salesforce? Maybe you are thinking of a new career path, your work is migrating to Salesforce, or you just want…
noKodr as Rapid Prototype Solution to Business in 2024
Introduction In today's fast-paced world, businesses need to quickly validate their ideas and concepts before investing significant time and resources into development. This is where…
Guide to Install an App from AppExchange
Thank you for your interest in knowing how to install apps from AppExchange for Salesforce. Use my blog as a guide, it will help you…
Popular Salesforce Videos
Foo Fighters Ignite Dreamforce Crowd on Day 1 | Salesforce
Salesforce's Dreamforce typically transforms San Francisco's South of Market area for its annual convention. This year is no exception, but due to COVID, it's a…
Ask Me Anything with Salesforce Developers | Lightning Web Components
Join experts Mohith Shrivastava and Greg Whitworth for our monthly feature Ask Me Anything! This 1-hour session on Lightning Web Components is your chance to…
Get a Complete View of Salesforce Data with MongoDB
Teri will show you how you can incorporate Salesforce (relational data) into a MongoDB collection (non-relational data) to give your customers a unified customer experience.…