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
soasoa 

Validation Rule to hava a system generated field

Hi,

 

I am creating an Application called Defect Tracking System. I need to add validation rules in it.

 

My first rule is :

1. I need to get the Defect number as soon as a new Defect is added.that is the defect number should be system generated.

this I shall do with the help of Before Insert Trigger.

Can you please suggest how shall I do it.

 

I have a defect object which has defect ID, ProjectID(which it takes from the Project object)

As soon as the user will press the save button in the defect form a Defect Number Field should be added automatically to this form.

 

Please tell me how to accomplish this..I am stuck.

 

Regards

Diti