Authorprashant.wayal

Mixed DML Exception in salesforce

M

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

H

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...

Add Products list to Activities i.e. Events and Tasks

A

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

G

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...

No matching Contacts or Leads in Salesforce

N

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...

Custom Send Email button on custom Objects

C

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

T

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...

Category