You need to sign in to do that
Don't have an account?
krish99
How to update the field when mail sent case
HI,
I have a object quote, for that object custom button is there to send an email, when user sends an email from salesforce that details all are storing in activity history,for that quote i have a status field(picklist) intinally while creating quote the status is request, when email sends means that status field have to chagne automatically to proposal send. how can i achieve this.. i can't getting exactly.
I have a object quote, for that object custom button is there to send an email, when user sends an email from salesforce that details all are storing in activity history,for that quote i have a status field(picklist) intinally while creating quote the status is request, when email sends means that status field have to chagne automatically to proposal send. how can i achieve this.. i can't getting exactly.
The email will be saved as a Task record under the custom object. You can write a trigger on Task object to achieve this.
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank
can you give me some sample trigger for above task.
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank
whille sendong an email i am getting thr following error what can i do any suggestions
There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "Apex trigger updatequotestatus caused an unexpected exception, contact your administrator: updatequotestatus: execution of AfterInsert caused by: System.NullPointerException: Attempt to de-reference a null object: Trigger.updatequotestatus: line 5, column 1".
Due to this error i am unable to send the email...
please try this:
Again sa,e error the code which i am using
t.what.getsobjecttype()==quote__c.sobjecttype here replace what with whatId