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
CwlexusCwlexus 

Getting started with writing triggers

I need a bit of assistance from the Salesforce community.  I attended Cloudfroce today and the penny finally dropped; point & click will get you so far, but if you want to get the most from Salesforce you must get into development; so I would like to take some baby steps by learning how to write triggers.

 

I am mainly an admin who is trying to do some development work.  Where would you recommend I start to get the basics /  correct syntax, etc for triggers?

 

I have a custom object with 3 date fields.  I have workflow rules which are linked to these dates.  I would like the trigger to fire off the workflow rule on the relevant dates.

 

Thanking you in advance

navneetnavneet

Hello,

 

According to my knowledge trigger will fire only when you are performing any DML operations.

 

It is possible by using time based workflow rule. Fore more reference refer following link 

 

https://login.salesforce.com/help/doc/en/workflow_time_action_considerations.htm

 

 

Thanks & Regards,

 

Navneet Rajput

CwlexusCwlexus

Thank you Navneet

 

 

Chamil MadusankaChamil Madusanka

Hi,

 

Try this link,

 

http://wiki.developerforce.com/index.php/Apex_Code_Best_Practices

 

If a reply to a post answers your question or resolves your problem, please mark it as the solution to the post so that others may benefit.