How to query DateTime field in Salesforce?
Salesforce stores the DateTime in GMT/UTC. Below SOQL will give the number of accounts that were created between 5 PM to 5.15 PM EST. Since EST is +5 from GMT, ....
Salesforce stores the DateTime in GMT/UTC. Below SOQL will give the number of accounts that were created between 5 PM to 5.15 PM EST. Since EST is +5 from GMT, ....
Advanced PDF renders Visualforce pages as PDF files with broader support for modern HTML standards, such as CSS3, JavaScript, and HTML5. This change applies to both Lightning Experience and Salesforce ....
@api To expose a public property, decorate it with @api. Public properties define the API for a component. An owner component that uses the component in its markup can access ....
Sample Code: Apex Class: public with sharing class AccountController { @AuraEnabled( cacheable = true ) public static List< Account > fetchAccounts( String searchKey ) { String strKey = '%' + ....
Apex Code: Map<String, Schema.SObjectType> globalMap = Schema.getGlobalDescribe(); for ( String key: globalMap.keySet() ) { Map<String, Schema.SObjectField> fieldsMap = globalMap.get( key ).getDescribe().fields.getMap(); for ( String fieldKey: fieldsMap.keySet() ) { DescribeFieldResult dfr = fieldsMap.get( fieldKey ).getDescribe(); if ( dfr.isCalculated() ) { System.debug( key + ',' + dfr.getName() + ',' + dfr.getCalculatedFormula() ); } } } 1. Set the debug log level to DEBUG for ApexCode and System. ....
Remote Site Settings: Sample Code: public class TwilioSMSHandler { public static void send( String strPhone ) { ErrorResponseWrapper erw; String smsBody = 'Test Message'; String strMediaURL = 'IMAGE_URL_WITH_EXTENSION'; final String fromNumber = 'FROM_NUMBER'; String account = 'ACCOUNT_SID'; String token = 'ACCESS_TOKEN'; HttpRequest req = new HttpRequest(); req.setEndpoint( 'https://api.twilio.com/2010-04-01/Accounts/' + account + '/Messages' ); req.setMethod( 'POST' ); req.setHeader( 'Content-Type', 'application/x-www-form-urlencoded' ); Blob headerValue = Blob.valueOf( account + ':' + token ); String authorizationHeader = 'BASIC ' + EncodingUtil.base64Encode( headerValue ); req.setHeader( 'Authorization', authorizationHeader ); if ( strPhone != null ) { req.setBody( 'To=' + EncodingUtil.urlEncode( strPhone, 'UTF-8' ) + '&From=' + fromNumber + '&Body=' + smsBody + '&MediaUrl=' + strMediaURL ); ....
Note: 1. Enter API Name of the child object in Object Name. 2. Parent Field API Name should be the lookup or master-detail field API Name. 3. Filed Name is ....
File Quick Action will be shown in Salesforce1 Mobile Application but not in lightning experience. 1. Add the File Quick Action to Salesforce Mobile and Lightning Experience Actions section. 2. Enable ....