function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Adeline MooreAdeline Moore 

Lead Owner change email notification?

I have a lead assignment rule set in to notify my queue members when a lead comes in for their region. I want a second notification to go to the Queue members when the lead gets an new owner (user). Am i right in using Process Builder? The Process is failing can anyone see why?
User-added image
User-added imageUser-added imageUser-added image
Here is the failure message:
User-added image
RD@SFRD@SF
Hi Adeline, 

You should be getting a detailed message to your support mail. Can you share that mail.
That would have a detailed description

Regards
RD
Thiruchuri AdityanThiruchuri Adityan
I opt for trigger approach instead of process builder approach.. And the reason for this error can be the filed you have choosen is owner Id (Queue)..
Adeline MooreAdeline Moore
Here is the email failure I received. 
User-added image
Adeline MooreAdeline Moore
This is the failure im getting: 
User-added image
I have created a workflow rule and an Email Alert
User-added imageUser-added image

Please help!!
Adeline
 
Thiruchuri AdityanThiruchuri Adityan
The error is not becuase of Worflow, I believe its because of Process Builder.  Update the values in process builder correctly.
Adeline MooreAdeline Moore
Clearly I do not know the Correct values for my process. LOL What Values are wrong and what should they be then?
RD@SFRD@SF
Hi Adeline,

Commenting from the error message you received in mail

It says that the queue.ownerid value is not set, if you read the first three lines
Can you check for the lead you are trying to do this the queue owner id is set,

Hope it helps
RD
Adeline MooreAdeline Moore
This is the test lead Im trying to Change Ownership of. It is currently owned by CMinor Leads Hawaii
When a user clicks on change owner i need the Hawaii queue to be notified that the lead has an owner.

How do i set the queue Id to be set? 
User-added image
RD@SFRD@SF
Hi Adeline,

Apologies for late reply, was on vacation.

The owner is being changed on lead. So the ischanged fucntion must check if the owner id is changed in the lead.
 
Ischanged(Lead.ownerId)

Where "Lead" is the object name and "ownerid" is the field api name

Hope it helps
RD
Daniel Khan 30Daniel Khan 30

Hi Adeline,

don't know if you're already solved the problem, but this Link should help you:

https://help.salesforce.com/articleView?id=000212174&language=en_US&type=1

I had a similar issue with that certain error message. Just make sure, that the criteria on the Process Builder is set up as something like:

"[Lead].OwnerId Is Null False".