Test class for SOAP Callout in Salesforce
Class generated from WSDL: //Generated by wsdl2apex public class ParkService { public class byCountryResponse { public String[] return_x; private String[] ....
Class generated from WSDL: //Generated by wsdl2apex public class ParkService { public class byCountryResponse { public String[] return_x; private String[] ....
Sample HTTPCallout Class: public class AnimalLocator { public static String getAnimalNameById(Integer id) { Http http = new Http(); HttpRequest request ....
The mock HTTPCallOuts available in Salesforce are below 1. StaticResourceCalloutMock2. HttpCalloutMock Test class for HTTPCallouts in Salesforce Sample HTTPCallout Class: public class AnimalLocator { public static String getAnimalNameById( Integer id ....
If you face "PDF generation failed. Check the page markup is valid" issue while rendering a Visulaforce page as PDF, do the following 1. Remove RenderAs attribute from apex:page and ....
1. Go to the VF properties in page layout. 2. Select Show scrollbars check box.
To find current or latest API version of Salesforce organization, please use the following steps: 1. Go to Develop --> API. 2. Click "Generate Partner WSDL". 3. First line will ....
If you face "Unable to refresh the file metadata" while installing Force.com IDE, the main reason for this is difference between Force.com IDE version and your organization API version. To ....
Add the below CSS in the Visualforce page to fix it. <style > @media print { body {-webkit-print-color-adjust: exact;} ....
Dynamic SOSL refers to the creation of a SOSL string at run time with Apex code. Dynamic SOSL enables you to create more flexible applications. Sample SOSL: String strName = ....
To deploy Compact Layout in Salesforce using ANT tool, include the Compact Layout, Record Type and the Profile. Use the following sample package.xml to retrieve and deploy Salesforce Compact Layouts. ....