Category: Salesforce
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
Salesforce | Set custom RecordType in case of web to lead
Situation: We have a web to lead form and every time we create a lead it always takes “Personal” as record type which is default record type in our org. We want to set another recordType like Agentco or Trucking
Salesforce: Truncate records from custom object in salesforce without using apex code
Truncate records from custom object in Salesforce without using apex code Salesforce provides a feature to delete bulk records for the standard objects. This can be achieved by navigating Setup -> Data Management-> Mass Delete Records. But in case we