Hi All, Many times we face this “Mixed DML Exception” in salesforce error while updating records. This error means you are updating setup and non-setup objects simultaneously. Here you will get details about all setup objects which cannot be inserted/updated with non-setup objects. How can you avoid this? To Avoid this type of error you use @future methods. Since future methods runs...
How to test Scheduled Apex Jobs in Salesforce
Hi All, We can test this by scheduling the apex class to run after 2 or few minutes, but salesforce UI allows scheduling apex on per hour basis. So, to overcome with this problem we can use below code which will schedule apex class as per the time we set. Please follow the steps below: 1. Open Developer console and click on debug option. 2. Click on Open Execute anonymous window. 3. Write below...
Custom charts using visualforce page
To generate custom charts by using visualforce page, just go through this simple demo: //Visualforce code: <apex:page controller=”PieChartController” title=”Pie Chart”> <apex:chart height=”350″ width=”450″ data=”{!pieData}”> <apex:pieSeries dataField=”data” labelField=”name”/> <apex:legend...
Add Products list to Activities i.e. Events and Tasks
Hello, Many of you want to add products lists to Events or Tasks because it is very important to have products list on Events or Tasks page layout so that if any of your sales person makes a call or mail to you, he should be able to give the list of products requested or sale. So, to have this functionality, please see the below screenshots; Add button on Task or Event Page layout as shown below:...
Get records using Salesforce Partner WSDL in .net
Hi, If you want to fetch the records from Salesforce object’s by using Partner WSDL in .net then use this code. It also fetch the number of records available in Salesforce custom and standard object. Step 1 : Create new Web-service project in .net Step 2 : Add your Partner WSDL in your new project. For detail instruction Click here Steps 3 : Add new Item to your project and name it as...
Unable to edit Visualforce page and Apex classes
Hi,
Many of you are not able to edit your visualforce page or Apex class in any browser i.e. you are getting a page like this image
Solution:
To exit from this problem, just delete all your browsers cache and browsing history. After that just click on edit button and you will able to edit your pages and Apex classes.
Thanx.
No matching Contacts or Leads in Salesforce
Hi All, many of you are using Salesforce for Outlook functionality provided by Salesforce to integrate your outlook with Salesforce. But many users are facing a problem such as “No matching Contacts or Leads in Salesforce” in the Side Panel of Salesforce in outlook. I have found some of the reasons for this cause and listing here some of them. 1. This error occurs when your email id...
Get related list without Action Column in visualforce page
Hi, When you want to display related list on visualforce page, you can use <apex:relatedList> tag, and it is very easy for ex: <apex:page standardController="MyMasterObject__c"> <apex:relatedList list="MyChildObjects__r" /> </apex:page> but this will display all the columns from related list including “Action” column and many times we don’t want to...
Custom Send Email button on custom Objects
Hi, If you want to add a custom button to send email on custom object then follow below mentioned steps: 1. Create Custom button on custom object; 2. in the content source, select URL; 3. in the value section, add following url {!Estimate__c.Bill_To_NameId__c}&rtype=003&doc_id=00Pi0000000OluX&retURL=/{!Estimate__c.Id}?srPos=0&srKp=00T where Estimate__c.BillToNameId__c is the...
Transfer objects, classes, pages from one org to another org in Salesforce
Hi, Here are the steps to transfer the Objects(Standard/Custom), Classes, Pages, Tabs, etc from one Salesforce organization to another with having different users. 1. Open Force.com IDE and create a new Project from source org. 2. While creating project select the components you want to transfer manually. 3. After completion, select either one object/Class/Page or as many you want ; 4. Then right...