Category: Salesforce
Salesforce Google drive integration | Upload files from Salesforce to Google drive
Follow the below steps for the integration of Salesforce and Google drive (to select files from local and upload to Google drive using Salesforce code): 1. Open Google Drive console. Here is the link for console: https://console.developers.google.com/apis 2. Select a
Salesforce | Send an email alert to Lead owner after X business hours from Lead Creation timestamp
Let’s say our business hours are from 9am to 6pm (Monday to Friday) and if Lead is created at 5pm on Monday an email alert should be sent to LeadOwner at 12am on Tuesday. You can set your business hours
Salesforce | Creating communities in Salesforce
Steps to create the communities in Salesforce: 1. Click on Setup: 2. Under customize click on communities. Click on all communities: 3. Click on New community button: 4. Choose your template according to your requirements. There are 5 templates provided
Salesforce: Call Apex Class on Click of Custom Button
1. Create apex class that you want to call (it should be declared global): Global class Test { Webservice static void testMethod() { //do something. } } Note: Webservice method must be static: Global class Test { Webservice static void
Salesforce | System.LimitException: Too many SOQL queries: 101
You may face this exception sometimes in Salesforce: System.LimitException: Too many SOQL queries: 101 There can be multiple reasons for this exception: Check if SOQL queries are not written in loops Check if DML are not called inside a loop.
Queues in salesforce
One primary purpose of creating the queue in salesforce is to manage particular object records. For example in lead queue, the queue is created to automatically assign the lead to particular user of the lead queue. As new lead enters
PHP | Send mail through Gmail SMTP server and phpmailer
We have mail() function to send emails in PHP. It uses built in sendmail command that uses local mail server to send emails. PHPMailer, on the other hand, is very different. Rather than relying on sendmail, it communicates directly with
Salesforce | Dynamic table column headings in a VisualForce page
In VisualForce Page I wanted to have different column headings, like this: I tried it using tag and tag but you can not display header value using tag as well as <apex:facetname=”header” > tag. <apex:repeat value=”{!prolist}” var=”ls” > <apex:column headerValue=”Producer
Test cases generation and bug report generation in salesforce
In case you would like to create test cases or record bugs inside Salesforce you can create custom objects for this. Steps for test cases object creation: Select->Setup->create object->new custom object Then we can add custom fields and relationships or