You need to sign in to do that
Don't have an account?
Bogdan Pascu
trigger to copy the value from one filed to another one
Hello I would need some help in building a trigger on the Event object. I need to copy the value from a custom field "ClientFeedback__c" to a standard one on the same object: "Description". I am missing this part from the trigger.
trigger showingWorkflowTrigger on Event (after insert, after update) { List<Event> events = Trigger.new; Map<Id, Event> oldEvents = null; if (Trigger.isUpdate) { oldEvents = Trigger.oldMap; } for (Event event : events) { RecordType rt = [Select Name FROM RecordType where Id=:event.RecordTypeId]; if (rt.Name == 'Showing' && event.WhoId != null) { } if (Trigger.isUpdate) { Event oldEvent = oldEvents.get(event.Id);
You can try something like this: Hope this helps!
You cannot create custom fields on Event object, it will go under activity only.
I also need the trigger to work after insert, after update and not before
ev.Description = ev.ClientFeedback__c