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
Amit  TrivediAmit Trivedi 

Activity standard function "Send an Email " for Salesforce1

Hi all,

Activity is in related list of Account. I need to send email from Account detail page so the   problem is with send an email functionality in Activity History related list.Send an Email button not available in activity history related list in salesforce1.How to overcome this problem.Do i need to create custom visualforce page or there is some way.
The vf page should be like standard page as given below
User-added image
Please provide me suitable solution.
Thanks in advanced.
KaranrajKaranraj
Amit  - Current 'Send an email' functionality is not available in salesforce1 app.Yes you have to create a visualforce page and assign that in the 'Account' object specific action which will allows to user to access the page in Salesforce1 app. Check this link for more details about object specific action https://developer.salesforce.com/trailhead/salesforce1_mobile_app/salesforce1_mobile_app_actions_objectspecific

Remeber that you are going to build a visualforce page for mobile app users, so make sure that your page is responsive for the mobile screen. Check this webinar for more details - https://www.youtube.com/watch?v=R3ytoc2MB60

FYI - Check this knowledge article https://help.salesforce.com/apex/HTViewSolution?id=000176954&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000176954&language=en_US)

Thanks,
Karanraj
Joe Nagy 6Joe Nagy 6
  1. This solution is not pretty, but here goes:
  2. Add new field to user records called Mobile App Email
  3. Have sales users go to Email settings and get Email to Salesforce id and put it in their user record's Mobile App Email
    1. also maybe have them turn off the email notifications for email to salesforce
    2. have them set up the settings according to your org, i.e i have all records get activity 
  4. Create Visual force page called Mailto with the code below
  5. Create a Contact Custom Button: Detail Page Button, URL with the following URL NOTE:Change to your org id and vfp name: https://c.cs19.visual.force.com/apex/Mailto?cemail={!Contact.Email}&&uemail={!$User.Mobile_App_Email__c}&retURL/={!Contact.Id} 
  6. Add the button to the mobile app actions on the page layout
Now whenever you click this button the bcc will include their email to salesforce id and log an activity even when clicked from the mobile app.
<apex:page showHeader="false" action="{!onload}"> 
<script> window.onload=function(){ 
var contactemail = "{!$CurrentPage.parameters.cemail}"; 
var useremail = "{!$CurrentPage.parameters.uemail}"; 
window.location=('mailto:' + contactemail + '?bcc=' + useremail );
} 
</script> 
</apex:page>