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
sriganeshsriganesh 

trigger help

 

my case object have Time_of_first_Type_Change__c fieild 

   i want timestamp value in this field  if the case type was first changed by a regular user (not AeroDefault)

if change the type field to another value the Time_of_first_Type_Change__c value doesnot change

 

please help me

 

thanks&regards

sai

Vinit_KumarVinit_Kumar

Your requirement is not very clear.Be specific to what you want so that we can help.

Subha ASubha A
In the trigger write after update

1. Make sure the default value of Time_of_first_Type_Change__c is empty (blank) for the first time.
2. As soon as you enter into trigger check the type of user(not AeroDefault) and if this satisfies and if Time_of_first_Type_Change__c is empty or blank then not down the system.Today() which will give you the timestamp

3. Next time onwards as you checked if the Time_of_first_Type_Change__c blank or not which will never happen as it is updated for the first time.

Hence this will make your work done.

Hope this will clear your query.