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
sfdc2090sfdc2090 

sending email

Hi..i am a newbie..and never worked with webservices

i am trying to write a trigger which gets triggered when a campaign is created and an email is sent to a praticular profile people.

As this will impact daily limit,i am using webservice

 

Any suggestion how to do it..

 

 

Any help highly  appreciated..

Thanks in advance

 

 

 

h8r41dh8r41d

Hi

 

You should look into using Workflow actions. You can set up a workflow to send an email to an individual or group when a record is created or updated, based on your specified criteria, without using an Apex trigger.

 

If you need technical guidance, you can always give us a call.

 

Gabriel Alack
Contact Us - We Can Help!

Salesforce Superheroes
------------------------------
help@salesforcesuperheroes.com
www.salesforcesuperheroes.com
1-888-407-9578 x122

sfdc2090sfdc2090

Hi

 

Thanks for your prompt reply.

I had already tried al those and none worked for me due to various reasons.

Anyways,apart from al those scinerios i came to know that i should write a trigger on it.

I need the techinical version (code) for that.

 

I am writing after insert and after update events on campaign.

 

Any help highly appreciated.

Thank you.

 

 

h8r41dh8r41d

Unfortunately I can't really help without further detail about what your hangups are.

 

Using a workflow is the only way to send a notification email when a record is created or updated without hitting the possible email governor limit in your trigger, since triggers support bulk actions, and if you can't nail down the right criteria using the native workflow rules because of complicated logic, you can use a before insert trigger to evaluate the records and then set a custom field flag if an email needs to be sent, then in the workflow rules you can simply reference the flag for simplicity.

 

if you need somebody to get in there and sort it out for you, feel free to give me a call or email. It's what we do :)

 

 

Gabriel Alack
Contact Us - We Can Help!
Salesforce Superheroes
------------------------------
help@salesforcesuperheroes.com
www.salesforcesuperheroes.com
1-888-407-9578 x122