-
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 Commerce Cloud for E-Commerce
What Is Commerce Cloud? Commerce Cloud is one of the eight product clouds that make up the Salesforce Intelligent Customer Success Platform. Along with Sales…
Why Every Small & Medium Business Need Salesforce Implementation
Salesforce CRM is getting popular these days among every enterprise, due to its capabilities. The cloud-based CRM is being an extensively useful developing technology, changing…
Salesforce Software Engineer: The future
What is a Salesforce Consultant? A Salesforce Consultant conventionally wears different covers. They might work in-house inside an association or be contracted as an external…
Popular Salesforce Videos
Add In-App Guidance to Salesforce Lightning Experience
In Lightning Experience, add prompts that appear on-screen to users working in an app. Use prompts to onboard and train users, highlight configuration changes and…
TrailheaDX '18 Opening Keynote - Part 6: Skill Up Everyone
Related Videos: Salesforce TrailheaDX ’18 Opening Keynote – Part 1: Create Connected Customer Experiences TrailheaDX ’18 Opening Keynote – Part 2: Salesforce Platform TrailheaDX ’18…
How To Use Salesforce Campaigns in Pardot
Learn campaign basics to help you plan your marketing strategy. In this video, Pardot experts guide you in: - Defining campaigns in Pardot and Salesforce…