You need to sign in to do that
Don't have an account?
wedaft
Sent email triggers a field update in the record that the email is related to.
I have a custom object called Observation Summary (Observation_Summary__c), and within that object I have a field called Date of Assessment (Date_of_Assessment__c). I would like to create a trigger that does the following:
Whenever an email is sent from the Observation Summary record, and that email's subject begins with "Observation feedback", the Date of Assessment field on the Observation Summary should update to become the date that the email was sent.
Is this possible? Thanks for your help!
Assuming you are using Standard "Send Email" button to send email from Activity History related list. Once you send an email a task will be created. So create a trigger on task object and check in trigger if "WhatId" is related to your desired object and then update the date of assesment appropritely to current date.
Hope this helps.
Would the trigger go on the task object or the observation summary object? I thought it would go on the obeservation summary object.
It would go on task object. Once you send an email on a observation record a task willl be created with subject as Email:subject...
Look at this sample code... this might help you