nextStartDate in Salesforce Business Hours
Starting from the specified target date, returns the next date when business hours are open. If the specified target date falls within business hours, this target date is returned. Sample ....
Starting from the specified target date, returns the next date when business hours are open. If the specified target date falls within business hours, this target date is returned. Sample ....
1. Go to the below link. http://ec.europa.eu/taxation_customs/vies/checkVatTestService.wsdl 2. Right click and save the XML. 3. Go to Apex Classes. 4. Click Generate From WSDL button. 5. Select the downloaded file from ....
JSON.serialize() can be used to convert sObject to JSON String in Salesforce using Apex. JSON.deserialize() can be used to convert JSON String to sObject in Salesforce using Apex. Sample Code: ....
Batch - System.isBatch()@future - System.isFuture()Queueable - System.isQueueable()Schedulable - System.isScheduled()Trigger - Trigger.isExecuting Visualforce - ApexPages.currentPage() != nullApex REST - RestContext.request != null Sample code to execute in Developer Console system.debug('Batch is ....
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="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"/> ....
Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:form > <apex:inputField value="{!objEmp.Approval_Status__c}"/> <br/><br/><br/> <apex:inputField value="{!objEmp1.Approval_Status__c}"/> </apex:form> </apex:page> Apex Class: public with sharing class Sample { public Employee__c objEmp {get;set;} public Employee__c objEmp1 ....
isAvailable() from RecordTypeInfo object/entity can be used to retrieve the Record Type which are accessible by user's Profile only. Using the following sample Apex Code, we should be able to find ....
System.QueryException: Aggregate query has too many rows for direct assignment, use FOR loop Salesforce Exception is thrown when the sub-query returns too many rows. In order to avoid System.QueryException: Aggregate ....