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
Brandon Nelson 9Brandon Nelson 9 

Send email with APEX from a custom lookup field on the Task object

OK my fellow Admins, I need some help.

I have a standard object (Task) with a custom field called 'Notify'. It is a lookup field from the USERS object. What I need to happen is when that 'Notify' field is NOT NULL, I need an email to go to that person.
I thought about doing a formula, but can't get it to work so I'm turning to APEX (Which I know nothing about).

All I need, is if that field is filled out, take the inserted user, get the email address, and send them an email with the link to the task.

Any thoughts????

Brandon
Kiran RKiran R
Hello Brandon,

I am positive that, You can write a Process Builder on Task to look up its Lookup to User field and create an alert to send an email to the related user when its not null/ updated.

Search for the Process Builder in the Setup > Quick Find. Its' a wizard that'll let you pick your Object (Task) and then the corresponding acttions.

I believe this should work for you case.