Skip to main content

Posts

Deprecated and New features in Spring 19

Deprecated Default Values Without Square Brackets for Array, Set, and List Attributes Setting a default value without square brackets is deprecated and can lead to unexpected behavior. To set a default value for these attribute types, surround comma-separated values with  [] ; for example,  default="['red', 'green', 'blue']" . Where:  This change applies to orgs with Lightning components in Lightning Experience, Salesforce Classic, and all versions of the Salesforce app. How:  Here’s an example of attributes for an array, a list, and a set. <aura:attribute name="colorArray" type="String[]" default="['red', 'green', 'blue']" /> <aura:attribute name="colorList" type="List" default="['red', 'green', 'blue']" /> <aura:attribute name="colorSet" type="Set" default="['red', 'green', '

Send attachment Via Apex using Templates

Email Via Apex using Email Templates : Contact con = [Select id from contact Limit 1]; List<String> emailsAll = new List<String>(); emailsAll.add(' toEmailAddress@gmail.com '); List<String> emailsCC = new List<String>(); emailsCC.add('cC EmailAddress@gmail.com '); String TemplateId = [SELECT Id FROM EmailTemplate WHERE DeveloperName = 'Multi_Language_Template_Test' LIMIT 1].Id; List<Messaging.SingleEmailMessage> mails =  new List<Messaging.SingleEmailMessage>();                    // Step 1: Create a new Email         Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();                 // Step 2: Set list of people who should get the email         mail.setToAddresses(emailsAll);         mail.setCcAddresses(emailsCC);         // Step 3: Set who the email is sent from         mail.setReplyTo('noreply@gmail.com'); // change it with your/Company mail address.         mail.setSende

Platform Developer I Certification Maintenance (Spring '19)

Platform Developer I Certification Maintenance (Spring '19) 1. Which Apex interface can be implemented to allow My Domain users to log in with something other than their username and password? A. Auth.AuthToken B. Auth.VerificationMethod C. Auth.LoginDiscoveryHandler D. Auth.MyDomainLoginDiscoveryHandler 2. With Spring '19, which method returns a list of OrgLimit instances used to investigate limits and their names, current value, and maximum value? A. getAll() from the System.OrgLimit Class B. getAll() from the System.OrgLimits Class C. getInstances() from the System.OrgLimit Class D. getInstances() from the System.OrgLimits Class 3. With Spring '19, which properties of an unhandled Apex exception are available in Event Monitoring log files? A. Static variable state and stack trace B. Exception type, name, and static variable state C. Stack trace, user's location, and exception type D. Exception message, exception type n

Spring 19 Administrator Maintenance Exam

Spring 19 Administrator Maintenance Exam Answers:

Salesforce spring 19

Salesforce Latest Release : IMPORTANT Links : Salesforce spring 19 Release Notes HTML   Salesforce Spring 19 Release Notes PDF Short Note: We turn on Lightning Experience for all orgs, and introduce new tools to help you manage your transition. Plus, we provide customizable prompts to get your users engaged with all that’s great in the new Salesforce. Land on the same record page when switching from Salesforce Classic to Lightning Experience. Run the full desktop version of Lightning Experience on iPad devices. See and do more with related lists when you turn on Enhanced Related Lists. Streamline appointment scheduling with a self-service interface and more Salesforce integrations in Lightning Scheduler. Send survey invites for free and get more responses with customized email invitations in Salesforce Surveys. Make the most of your browser space with a right-aligned utility bar in Lightning Console. Find what you need fast with search results that reflect how you navigate, a

Impact to Salesforce customer orgs.

Impact to Salesforce customer orgs Salesforce continues recovery efforts to bring all instances back to a healthy state. For updated information on the production and sandbox environments, please click the appropriate link below. Our preliminary Incident Summary for this ongoing permissions issue is here:  https://sfdc.co/PermSetIncidentSummary .

Collection in Salesforce

Collection in Salesforce: Always prefer to use Map :   Syntax : Map < Integer ,  String > mapData =  new   Map < Integer ,  String >(); Methods : clear() Removes all of the key-value mappings from the map. clone() Makes a duplicate copy of the map. containsKey(key) Returns  true  if the map contains a mapping for the specified key. deepClone() Makes a duplicate copy of a map, including sObject records if this is a map with sObject record values. equals(map2) Compares this map with the specified map and returns  true  if both maps are equal; otherwise, returns  false . get(key) Returns the value to which the specified key is mapped, or  null  if the map contains no value for this key. getSObjectType() Returns the token of the sObject type that makes up the map values. hashCode() Returns the hashcode corresponding to this map. isEmpty() Returns true if the map has zero key-value pairs. keySet() Returns a set that contains all of the keys in the map. put(

Translate