You need to sign in to do that
Don't have an account?

Cannot figure out how to stop transfer notifications
This question involves APEX triggers and APIs so I'm hoping someone can help. I've been SFDC admin and developer for over a decade but this one has me stumped.
My reps are getting flooded by SFDC generated contact transfer notifications and I have no idea how to stop them. Here' the order of events:
1) lead imported to Marketo
2) lead syncs with SFDC
3) SFDC Assignment rules applied (FYI, no email templates are used in this step)
4) Lead auto convereted by trigger and attched to Account
5) New Contact owner changed to match Account owner by trigger
There are no workflow or notification settings that I can see that would create a transfer notification...and here's the really wierd part. If I do all of the above steps, except start it by manually creating a lead in the SFDC UI, then no notification is sent. This only happens when the lead is injected from Marketo. That said, I am 100% sure the notification is sent from SFDC because I checked the email headers. So I think the answer must have something to do with some sort of API / trigger combination. Below is a copy of one of the transfer notifications.
All ideas for making this stop are welcome. Thank you very much.
-Derek
Subject: Contact transferred to you.
Body: Contact [NAME] has been assigned to you. Please click on the link below to view the record.
My reps are getting flooded by SFDC generated contact transfer notifications and I have no idea how to stop them. Here' the order of events:
1) lead imported to Marketo
2) lead syncs with SFDC
3) SFDC Assignment rules applied (FYI, no email templates are used in this step)
4) Lead auto convereted by trigger and attched to Account
5) New Contact owner changed to match Account owner by trigger
There are no workflow or notification settings that I can see that would create a transfer notification...and here's the really wierd part. If I do all of the above steps, except start it by manually creating a lead in the SFDC UI, then no notification is sent. This only happens when the lead is injected from Marketo. That said, I am 100% sure the notification is sent from SFDC because I checked the email headers. So I think the answer must have something to do with some sort of API / trigger combination. Below is a copy of one of the transfer notifications.
All ideas for making this stop are welcome. Thank you very much.
-Derek
Subject: Contact transferred to you.
Body: Contact [NAME] has been assigned to you. Please click on the link below to view the record.
2 things which I want to highlight -
1)Are there any triggers active on Contact object?
2) while transferring the contact record, is the user selecting 'Send notification email' checkbox ?
There are 2 triggers involved. A trigger on the lead fires upon lead creation that does a lookup comparing the email domain of the lead to account websites. If a match is found, the trigger converts the lead and attaches the contact to the matching account. Then, a trigger on the contact changes owner of the new contact to make sure it matches the owner of the existing account. I suspect this is where the issue is occurring. How do I prevent Apex owner changes from firing alerts. Contact trigger code is below:
FA connector has the "Send User Emails" checked off so that users can receive case assignment notification emails.
Upon form submission we create/update contacts, before creating the related case, and that fires the trigger that updates contact ownership based on submitted country/state values. As a result users are receiving multiple "transfer notification" emails (there are a few cycles of evaluations).
I did not see similar problems reported previously, so that may indeed be a bug?
Just bringing this back to light.
I too have had the same issue and after changing the "DML" so many "DML" times and scratching my head, I finally stumbled across this:
"The database.DMLOptions object supports assignment rules for cases and leads, but NOT for accounts or territory management."
So, considering Contact management has to do with Accounts, I'm assuming this falls under the "NOT for accounts" option. Please, please, anyone know what to add in APEX to stop Contact Transfer notifications from firing off when you have this type of automation!??!!
Does anyone have a solution to stop these emails from firing?
Still looking for what to do... anybody solve this 3 years later?? :)
In Form Assembly, under Connectors > Salesforce > Configure, you can scroll to the bottom and you will see a checkbox for "trigger user emails". Their help documentation says this controls whether FA will tell SF to send various emails to internal users based on a number of potential criteria, including "resetting a password, creating a new user, adding comments to a case, or creating or modifying a task."
I tested the Account Ownership transfer emails that get sent to me because of registrations via Form Assembly. They came when that checkbox was checked, and stopped when it was unchecked. Notification emails about the form being filled in were unaffected.
Our form and use-case is simple enough that I'm not concerned about other potential impacts of disabling that setting (but I'm keeping my eye on it). But I'm leaving this info here because the solution to this problem seems to be a case of Salesforce and a third-party integration not talking clearly to each other.
This sounds like the Salesforce internal trigger needs to be able to detect that it has already fired once and not send duplicate emails. This isn't my area of expertise, but if you need this fixed you should open a Case with Salesforce.
Reference: W-4287656
- Marketo loads in a lead
- Lead is auto-converted into a Contact with an APEX trigger
- Flow is triggered to manage record owner
- Salesforce's notification alert is sent to the new record owner
ORWhat I don't get is why does Marketo setting off Salesforce process to change record owner generate this alert while I can use a other products (DBAmp) to mass update records, essentially through the same Salesforce API, and not set off these notifications? Maybe Marketo's native sync with Salesforce is passing a parameter through the API that is causing the record transfer alerts (or DBAmp is passing a parameter to suppress them)?
The workaround listed says to "Use a Before Insert trigger" in the flow: see this document (https://help.salesforce.com/articleView?id=flow_concepts_trigger_record.htm&type=5).