Increase your team’s productivity with Gmail and Salesforce Integration
According to the latest McKinsey & Company report, 28% of an average interaction employee’s time is spent in managing emails and calendars. That is why improving collaboration and communication across apps is of utmost importance as it creates streamlined workflows and increases workforce productivity.
If your team uses both Salesforce and Gmail then instead of wasting time going back and forth between the two applications, it is time to use both together. Salesforce Integration with Gmail will not only improve employee’s productivity but also bring added value to the table.
The following are the steps to efficiently integrate Salesforce and Gmail.
STEP 1: Create Google OAuth Client Id on Google Console:
3. On saving, Salesforce will redirect you to the Google OAuth consent screen.
4. After accepting, you will be redirected back to Salesforce, and ‘Authentication Status: Authenticated’ message will be displayed for your Named Credential.
STEP 5: Run script for Apex Callout:
Step 1: Copy this Apex Code
Read Drafts with below Apex script:-
or
Read Messages with below apex script
Step 2: On the right top corner, click on your name → From the drop-down, select Developer Console.
Step 3: Click on the Debug from the menu → From the drop-down, select Open Execute Anonymous Window.
Step 4: Paste the previously copied code here.
Step 5: Check Open Log and Select Execute.
Step 6: Check Debug Only
Step 7: Draft’s information on the screen will be displayed.
Conclusion:
Enhance your workforce productivity by eliminating the time spent on redundant data entry on two applications. Also, eliminate manual errors and bring the relevant records at one place by collaborating Salesforce and Gmail.