function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
how to insert a activity history, in when i send a mail?
Try this :
SingleEmailMessage message = new SingleEmailMessage(); message.setSaveAsActivity(true);
Thanks
Ankit Arora
Blog | Facebook | Blog Page
HI Ankit,
your solution does not work for me.
I think that message.setSaveAsActivity(true); only activates the functionality, but then you have to create a new ActivityHistory object with all the fields (Date, etc.) in the code and/or insert it into the DB. Is that correct?
Many thanks!
Try this :
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
Try this :
Thanks
Ankit Arora
Blog | Facebook | Blog Page
HI Ankit,
your solution does not work for me.
I think that message.setSaveAsActivity(true); only activates the functionality, but then you have to create a new ActivityHistory object with all the fields (Date, etc.) in the code and/or insert it into the DB. Is that correct?
Many thanks!