-
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
How to integrate SharePoint with Salesforce?
This is the era of the cloud. Everything everywhere is connected with each other via cloud-hosted web services and people can access these services from…
Setting Up Subscription Products and Making Configuration Decisions in Salesforce CPQ
We are back again with our Managing Your Subscription Products with Salesforce CPQ series. In our previous blog, we introduced different subscription models on a…
Customize your Buying Experience with the Salesforce for Retail Breakthrough
At the beginning of this year, Salesforce released a number of new innovations to assist retailers in increasing and optimizing advertising sales, obtaining a unified…
Popular Salesforce Videos
4 Benefits of Salesforce Data Services (ETL)
When your enterprise needs to integrate data from a different application, Salesforce Data Services will help your company in Extracting, Transforming, and Loading the gathered…
Create Reports In Salesforce With Report Builder
Create reports in Salesforce with Report Builder. In this video, the following points will be covered - 1. Introduction Get a brief introduction about reports…
Introducing KaseSync: An Innovative Community-CRM Connector! | Salesforce
KaseSync, is an innovative community-CRM connector designed to create seamless bi-directional data sync between platforms. Learn how exactly it improved self-service and boosts community engagement.