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
rvg170550rvg170550 

Solved ! Modify "Name"-field in "Before Insert trigger"

trigger Before_Insert_Special_Event on SFDC_Special_Event__c (before insert) {

 

for (SFDC_Special_Event__c se : Trigger.New)

{

se.Name = se.MCE_Product__r.Name;

se.Description__c = se.Workshop_Name__c;

}

}

 

Instead of uning Autonum, I want to structure my "Name"-field myself. Unfortunately, it doesn't work the way I code it.

 

I want to combine in Name, a data field and a sequence, but even filling it with an existing column doesn't work. Since the field is not filled manually, the system says : "You have to fill the Name-field". Description-field works properly.

 

Could someone give me a hint, to solve this problem ?

 

Thanks

Message Edited by rvg170550 on 05-08-2009 03:57 AM