Sample Partial DML Apex code in Salesforce
Sample Code: List < Contact > conList = new List < Contact > { new Contact( FirstName = 'Test0', LastName = 'Test0', Department = 'Finance' ), new Contact( FirstName = ....
Sample Code: List < Contact > conList = new List < Contact > { new Contact( FirstName = 'Test0', LastName = 'Test0', Department = 'Finance' ), new Contact( FirstName = ....
Sample Code: @RestResource(urlMapping='/Account/*') global with sharing class sampleRest { @HttpGet global static Account doGet() { RestRequest req = RestContext.request; String memberId = req.requestURI.substring(req.requestURI.lastIndexOf('/') + 1); Account result = [SELECT Id, ....
Remote Site Settings: Visualforce Page: <apex:page controller="RESTAPIXMLResponseController"> <apex:form> <apex:pageBlock> <apex:pageBlockSection> <apex:pageBlockSectionItem>Customer No: <apex:inputText value="{!strCustomerNo}"/></apex:pageBlockSectionItem> </apex:pageBlockSection> <apex:pageBlockButtons location="bottom"> <apex:commandButton value="Fetch" action="{!fetchAPI}"/> </apex:pageBlockButtons> </apex:pageBlock> <apex:pageBlock> <apex:repeat value="{!mapCustomer}" var="c"> {!c} - {!mapCustomer[c]}<br/> </apex:repeat> ....
Remote Site Settings: Visualforce Page: <apex:page controller="RESTAPIJSONResponseController"> <apex:form> <apex:pageBlock> <apex:pageBlockButtons location="bottom"> <apex:commandButton value="Fetch" action="{!fetchAPI}"/> </apex:pageBlockButtons> </apex:pageBlock> <apex:pageblock> <apex:pageBlockSection> <apex:pageBlockTable value="{!listWrapper}" var="obj"> <apex:column value="{!obj.id}" headerValue="Id"/> <apex:column value="{!obj.login}" headerValue="Login"/> <apex:column value="{!obj.url}" headerValue="URL"/> ....
1. Go to https://www.eclipse.org/downloads/eclipse-packages/. 2. Select 32 bit or 64 bit based on your computer. To know whether your system is 32 bit or 64 bit, use the below link https://www.infallibletechie.com/2013/06/how-to-know-whether-my-system-is-32-bit.html ....
Chatter streams are custom feeds that you create by combining multiple related feeds. Look for streams on your Chatter home page. Create up to 100 streams that each combine posts ....
Sample Code: Contact contact = new Contact(LastName = 'Test'); Set < Id > duplicateIds = new Set < Id >(); Database.SaveResult saveResult = ....
The first step to troubleshoot the unsupported_grant_type exception in Salesforce is to check the Login History. https://www.infallibletechie.com/2013/08/how-to-view-login-history-of.html 1. When you face {"error":"unsupported_grant_type","error_description":"grant type not supported"} error, put all the information in ....
1. Describe some SF best practices and patterns that you have used? https://developer.salesforce.com/page/Apex_Design_Patterns 2. What is the tuning performance? How do you increase it? https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_dev_best_practices_performance.htm 3. What is the apex ....
Conditional rendering allows us to hide and show. We have to use 1. aura:if For showing contents when the condition is true. 2. aura:set For showing contents when the condition ....