How to make sure JTEST for LWC contents are never saved to Salesforce?
To ensure that the __tests__ folder and its contents are never saved to Salesforce, add this glob pattern to the .forceignore file for each of your projects.**/__tests__/**
To ensure that the __tests__ folder and its contents are never saved to Salesforce, add this glob pattern to the .forceignore file for each of your projects.**/__tests__/**
0B6 is for CaseTeamMember object. Use the below SOQL to check. SELECT Id, TeamRoleId, MemberId, ParentId FROM CaseTeamMember
Platform Event in Salesforce: Sample Flow: Replay Channel: Transform Message: Logger: Run As Mule Application: Code to execute in Developer Console:Below code is used to create Platform Event so that ....
Make HTTP GET to https://yourdomain.my.salesforce.com/services/data/v44.0/limits or https://login.salesforce.com/services/data/v44.0/limits to check the Salesforce limits. 1. Get the access token. 2. Use the access token and hit the limits Endpoint URL.
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 ); ....