-
How to Bypass Merge Operation for this specific scenario? (read description below)
I have a requirement in which system will allow to delete an account only when its related contacts status are inactive...if any of the contacts are active then it should throw an error message.. I have fulfilled this functionality by writing apex code on beforedelete event..My code is working fine but there is a standard functionality in Salesforce called as "Merging"........In that scenario when i merge two accounts,if loosing account contains active records then it is throwing me validation message...but I have to bypass my code when it comes to the merging....
Can anybody suggest me,how I bypass the code?
One thing I tried,note down the masterid of winning record and put in my condition where I can bypass the scenario..but when I merge the accounts then I am not able to get MasterID of Winiing record....I am not sure why this is happening???
Ideally I should get some ID of the merge operation
Log In to reply.
Popular Salesforce Blogs
8 Ways How CRM Aligns Marketing And Sales
Although sales and marketing are two independent departments within an organization, most likely they work together to achieve a common goal, i.e., finding leads and…
Profile Attributes in Salesforce Marketing Cloud
Steps to create a Profile Attributes in Salesforce Marketing cloud: Login to Marketing cloud Click on Email -----> Subscribers -----> Click on "Profile Management" Click…
Top 6 Qualities of Salesforce Consulting Partners to Look Out For in 2024
When it comes to CRM, anywhere we go in India or across the globe, everywhere we see Salesforce and Salesforce consulting partners We all know what Salesforce…
Popular Salesforce Videos
Salesforce Multi-factor Authentication/Two-factor Authentication End User Training Video
Watch this video to learn all about Salesforce Multi-factor Authentication/Two-factor Authentication. This is a training video. Watch and learn.
A day at Dreamforce Event!
Time to share with you all the Algoworks Experience at Dreamforce 2019. The fun at Dreamforce was unparalleled, come relish the Dreamforce week with us!…
Salesforce Service Cloud Telephony
Natterbox CTI and Telephony inside Salesforce ServiceCloud. Transform your telephony experience and empower your agents with fast and personalised support.