<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1045371189442129818</id><updated>2025-06-29T18:05:30.059+05:30</updated><title type='text'>WhatASalesForce</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>103</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-6944566885620442029</id><published>2024-09-02T21:43:00.001+05:30</published><updated>2024-09-02T21:43:28.921+05:30</updated><title type='text'>Get Records from Report and Assign equally to available users</title><content type='html'>&lt;p&gt;&amp;nbsp;global class CreateDailyDialListTasksForAgents implements Schedulable {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global void execute(SchedulableContext SC) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String reportName = &#39;DQ_Account_Buckets&#39;;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Report&amp;gt; reportList = [SELECT Id, DeveloperName FROM Report WHERE DeveloperName = :reportName];&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!reportList.isEmpty()) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fetchReportData(reportList[0].Id);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global void fetchReportData(Id reportId){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reports.ReportResults results = Reports.ReportManager.runReport(reportId, true);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(results != null &amp;amp;&amp;amp; results.getFactMap() != null){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;String&amp;gt; headers = new List&amp;lt;String&amp;gt;();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(String colName : results.getReportMetadata().getDetailColumns()) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String label = results.getReportExtendedMetadata().getDetailColumnInfo().get(colName).getLabel();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; headers.add(label);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reports.ReportFactWithDetails factDetails = (Reports.ReportFactWithDetails)results.getFactMap().get(&#39;0!0_0&#39;);&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Map&amp;lt;String,String&amp;gt; accPhoneMap = new Map&amp;lt;String,String&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (Reports.ReportDetailRow row : factDetails.getRows()) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer cellIndex = 0;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String Name;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String Phone;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (Reports.ReportDataCell cell : row.getDataCells()){&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String column = headers.get(cellIndex);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(Column == &#39;Property Owner: Account Name&#39;){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Name = cell.getLabel();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(Column == &#39;Property Owner: Phone&#39;){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Phone = cell.getLabel();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cellIndex++;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accPhoneMap.put(Name,Phone);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; system.debug(accPhoneMap);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(accPhoneMap != null &amp;amp;&amp;amp; !accPhoneMap.isEmpty()){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; createTasksForAgents(accPhoneMap);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; global void createTasksForAgents(Map&amp;lt;String,String&amp;gt; accPhoneMap){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Id&amp;gt; usersIds = new List&amp;lt;Id&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Id&amp;gt; availableUsersIds = new List&amp;lt;Id&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; /*&amp;nbsp; for(GroupMember gm :[Select UserOrGroupId From GroupMember where Group.Name =&#39;Collection Queue&#39;]){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String uId = gm.UserOrGroupId;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(uId.startsWith(&#39;005&#39;)){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usersIds.add(uId);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }*/&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(User u :[Select Id From User where Profile.Name =&#39;HOA Account Loyalty&#39; OR Profile.Name =&#39;HOA Account Loyalty Mgr&#39;]){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usersIds.add(u.Id);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!usersIds.isEmpty()){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(UserServicePresence usp :[Select UserId From UserServicePresence Where IsCurrentState = true and UserId IN:usersIds]){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; availableUsersIds.add(usp.UserId);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(availableUsersIds.isEmpty()){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Task&amp;gt; tasksList = new List&amp;lt;Task&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(String acc : accPhoneMap.keySet()){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Task t = new Task();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.Subject = &#39;Call &#39;+acc+&#39; @ &#39;+accPhoneMap.get(acc);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.IsReminderSet = true;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.ReminderDateTime = System.now();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.ActivityDate = Date.today();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tasksList.add(t);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer noOfUsers = availableUsersIds.size();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer noOfTasks = tasksList.size();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer recordsPerUser = (noOfTasks + noOfUsers - 1) / noOfUsers;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Map&amp;lt;Id, List&amp;lt;Task&amp;gt;&amp;gt; userTaskMap = new Map&amp;lt;Id, List&amp;lt;Task&amp;gt;&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(Id uId : availableUsersIds){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userTaskMap.put(uId, new List&amp;lt;Task&amp;gt;());&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer currentIndex = 0;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(Task t : tasksList){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String uId = availableUsersIds[Math.mod(currentIndex, noOfUsers)];&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userTaskMap.get(uId).add(t);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; currentIndex++;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Task&amp;gt; tasksToInsert = new List&amp;lt;Task&amp;gt;();&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(Id uId : userTaskMap.keySet()){&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Task&amp;gt; tasks = userTaskMap.get(uId);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (Task t : tasks) {&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; t.OwnerId = uId;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tasksToInsert.add(t);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Database.insert(tasksToInsert,false);&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/6944566885620442029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2024/09/get-records-from-report-and-assign.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6944566885620442029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6944566885620442029'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2024/09/get-records-from-report-and-assign.html' title='Get Records from Report and Assign equally to available users'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-8869457265990536733</id><published>2022-09-28T11:47:00.000+05:30</published><updated>2022-09-28T11:47:17.304+05:30</updated><title type='text'>LWC Datatable with Pagination and keep selected rows persistent</title><content type='html'>&lt;p&gt;&amp;nbsp;Here is the code to display data in LWC Datatable with pagination and keep selected rows persistent between each page.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;accountsTable.html &lt;/b&gt;:&lt;/p&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;lt;lightning-card&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; variant=&quot;Narrow&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; title=&quot;Partner Lookup&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; icon-name=&quot;standard:contact&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; class=&quot;slds-var-m-around_small&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;lightning-button&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; variant=&quot;brand&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; icon-name=&quot;utility:email&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Send Email&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; title=&quot;Brand action&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; slot=&quot;actions&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; onclick={openEmailPopup}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; disabled={disableEmail}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/lightning-button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;slds-card__body slds-card__body_inner&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;template if:true={showLoading}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-spinner&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternative-text=&quot;Loading&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size=&quot;medium&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;spinnerClass&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; variant=&quot;brand&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-spinner&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type=&quot;search&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;slds-size_4-of-12 slds-var-p-bottom_small&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Company&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value={searchKey}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onchange={handleSearchChange}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-input&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;template if:false={noData}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-datatable&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data-id=&quot;table&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; key-field=&quot;Id&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data={data}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; columns={columns}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onrowselection={onRowSelection}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; selected-rows={allSelectedRows}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;slds-table_bordered&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-datatable&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div slot=&quot;footer&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout class=&quot;slds-var-p-around_small&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item class=&quot;slds-size_2-of-12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-button&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Previous&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; icon-name=&quot;utility:chevronleft&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onclick={previousHandler}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disabled={disbalePrevious}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item class=&quot;slds-size_2-of-12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Page {page} of {totalPage}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item class=&quot;slds-size_2-of-12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-button&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Next&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; icon-name=&quot;utility:chevronright&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; icon-position=&quot;right&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onclick={nextHandler}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; disabled={disbaleNext}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;template if:true={noData}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p class=&quot;slds-text-heading_small slds-var-p-top_small&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; No matching Accounts to display.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/p&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;lt;/lightning-card&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;lt;template if:true={showModal}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;section aria-modal=&quot;true&quot; class=&quot;slds-modal slds-fade-in-open&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;slds-modal__container&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;header class=&quot;slds-modal__header&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;h2 class=&quot;slds-text-heading_small&quot;&amp;gt;Send Email&amp;lt;/h2&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-button-icon&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;slds-modal__close&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; icon-name=&quot;utility:close&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; variant=&quot;bare-inverse&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onclick={closeModal}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternative-text=&quot;Close&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title=&quot;Close&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-button-icon&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/header&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;slds-var-p-around_small slds-modal__content modalBody slds-is-relative&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;template if:true={showModelLoading}&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-spinner&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alternative-text=&quot;Loading&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; size=&quot;medium&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;spinnerClass&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; variant=&quot;brand&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-spinner&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout multiple-rows=&quot;true&quot; horizontal-align=&quot;space&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item size=&quot;12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name=&quot;recipients&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; required=&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value={recipients}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Recipients&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onchange={onChangeRecipient}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-input&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item size=&quot;12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-combobox&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name=&quot;template&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Template&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value={selectedTemplate}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; placeholder=&quot;Select Template&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options={templateOptions}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onchange={handleTemplateChange}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-combobox&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item size=&quot;12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-input&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name=&quot;subject&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; required=&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value={subject}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Subject&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onchange={onChangeSubject}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-input&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-layout-item size=&quot;12&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-input-rich-text&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value={htmlBody}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Content&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label-visible=&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; share-with-entity-id={recordId}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; required=&quot;true&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onchange={onChangeContent}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-input-rich-text&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout-item&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-layout&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;footer class=&quot;slds-modal__footer&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-button&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; variant=&quot;neutral&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Cancel&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title=&quot;Cancel&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onclick={closeModal}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&quot;slds-var-p-right_small&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;lightning-button&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; variant=&quot;brand&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; icon-name=&quot;utility:send&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label=&quot;Send&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title=&quot;Send&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; onclick={onClickSendEmail}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/lightning-button&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/footer&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/section&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;div class=&quot;slds-backdrop slds-backdrop_open&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;lt;/template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;lt;/template&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b style=&quot;background-color: transparent; font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;AccountsTable.js&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import { LightningElement, wire, api, track } from &quot;lwc&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import getPartners from &quot;@salesforce/apex/AccountController.getPartners&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import getRecipients from &quot;@salesforce/apex/&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;AccountController&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.getRecipients&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import getEmailBody from &quot;@salesforce/apex/&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;AccountController&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.getEmailBody&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import sendEmail from &quot;@salesforce/apex/&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;AccountController&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;.sendEmail&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import emailTemplateLabel from &quot;@salesforce/label/c.AccountTemplates&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;import { ShowToastEvent } from &quot;lightning/platformShowToastEvent&quot;;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;const columns = [&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; { label: &quot;First Name&quot;, fieldName: &quot;FirstName&quot;, type: &quot;text&quot; },&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; { label: &quot;Last Name&quot;, fieldName: &quot;LastName&quot;, type: &quot;text&quot; },&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; { label: &quot;Email&quot;, fieldName: &quot;Email&quot;, type: &quot;text&quot; },&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; { label: &quot;Phone&quot;, fieldName: &quot;Phone&quot;, type: &quot;Text&quot; },&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; { label: &quot;Country&quot;, fieldName: &quot;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;MailingCountry&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&quot;, type: &quot;Text&quot; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;const DELAY = 300;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;export default class A&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;; font-size: medium; white-space: normal;&quot;&gt;ccountsTable&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;extends LightningElement {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @api recordId = null;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track showLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track showModelLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track searchKey = &quot;&quot;;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track page = 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track items = [];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track data = [];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track columns;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track startingRecord = 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track endingRecord = 0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track pageSize = 10;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track totalRecountCount = 0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track totalPage = 0;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track disableEmail = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track allSelectedRows = [];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track showModal = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track recipients;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track selectedrecipients;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track selectedTemplate;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track subject;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @track htmlBody;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; isPageChanged = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; initialLoad = true;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; @wire(getPartners, {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; recId: &quot;$recordId&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; searchKey: &quot;$searchKey&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; wiredPartners({ error, data }) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; if (data) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.processRecords(data);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; } else if (error) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.data = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; processRecords(data) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.items = data;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.totalRecountCount = data.length;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.totalPage = Math.ceil(this.totalRecountCount / this.pageSize);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; const arr = this.items.slice(0, this.pageSize);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; const newArr = arr.map((object) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return { ...object, Id: object.Id + &quot;-1&quot; };&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.data = newArr;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.endingRecord = this.pageSize;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.columns = columns;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; get disbalePrevious() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; return this.page == 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; get disbaleNext() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; return this.page == this.totalPage;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; previousHandler() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.isPageChanged = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; if (this.page &amp;gt; 1) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.page = this.page - 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.displayRecordPerPage(this.page);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; nextHandler() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.isPageChanged = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; if (this.page &amp;lt; this.totalPage &amp;amp;&amp;amp; this.page !== this.totalPage) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.page = this.page + 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.displayRecordPerPage(this.page);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; displayRecordPerPage(page) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.startingRecord = (page - 1) * this.pageSize;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.endingRecord = this.pageSize * page;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.endingRecord =&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.endingRecord &amp;gt; this.totalRecountCount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ? this.totalRecountCount&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : this.endingRecord;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; const arr = this.items.slice(this.startingRecord, this.endingRecord);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; const newArr = arr.map((object) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; return { ...object, Id: object.Id + &quot;-&quot; + page };&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.data = newArr;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.startingRecord = this.startingRecord + 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.template.querySelector(&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &#39;[data-id=&quot;table&quot;]&#39;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; ).selectedRows = this.allSelectedRows;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; onRowSelection(event) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; if (!this.isPageChanged || this.initialLoad) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.initialLoad = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var selectedRows = event.target.selectedRows;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var allSelectedRows = this.allSelectedRows;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var currentPageNumber = this.page;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Process the rows now&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Condition 1 -&amp;gt; If any new row selected, add to our allSelectedRows attribute&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Condition 2 -&amp;gt; If any row is deselected, remove from allSelectedRows attribute&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Solution - Remove all rows from current page from allSelectedRows attribute and then add again&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Removing all rows coming from curent page from allSelectedRows&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var i = allSelectedRows.length;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (i &amp;gt; 0) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (i--) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var pageNumber = allSelectedRows[i].split(&quot;-&quot;)[1];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (pageNumber &amp;amp;&amp;amp; pageNumber == currentPageNumber) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allSelectedRows.splice(i, 1);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; selectedRows.forEach(function (row) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; allSelectedRows.push(row);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if (allSelectedRows.length &amp;gt; 0) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.disableEmail = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.disableEmail = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.allSelectedRows = allSelectedRows;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.isPageChanged = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; handleSearchChange(event) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; window.clearTimeout(this.delayTimeout);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; const searchKey = event.target.value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.delayTimeout = setTimeout(() =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.searchKey = searchKey;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; var data = [];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; this.items.length; i++) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.items[i] != undefined &amp;amp;&amp;amp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.items[i].FirstName.includes(this.searchKey)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data.push(this.items[i]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.processRecords(data);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.page = 1;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }, DELAY);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; openEmailPopup() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showModal = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showModelLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; var recs = [];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; for (var i = 0; i &amp;lt; this.allSelectedRows.length; i++) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; recs.push(this.allSelectedRows[i].split(&quot;-&quot;)[0]);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; getRecipients({ recIds: recs })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .then((result) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showModelLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.recipients = result;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.selectedrecipients = result;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .catch((error) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showModelLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.recipients = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.selectedrecipients = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; get templateOptions() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; var options = emailTemplateLabel.split(&quot;;&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; var resultMap = [];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; for (let i = 0; i &amp;lt; options.length; i++) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; resultMap.push({&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class: &quot;optionClass&quot;,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label: options[i],&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; value: options[i]&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; return resultMap;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; onChangeRecipient(event) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.recipients = event.detail.value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; onChangeSubject(event) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.subject = event.detail.value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; onChangeContent(event) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.htmlBody = event.detail.value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; handleTemplateChange(event) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showModelLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.selectedTemplate = event.detail.value;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; getEmailBody({ leadId: this.recordId, templateName: this.selectedTemplate })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .then((result) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showModelLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (var key in result) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.subject = key;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.htmlBody = result[key];&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; .catch((error) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showModelLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.subject = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.htmlBody = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; get noData() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; return this.items.length == 0 ? true : false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; closeModal() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.closeEmailModel();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; onClickSendEmail() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; if (&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.recipients == undefined ||&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.recipients == null ||&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.recipients == &quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; ) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showToast(&quot;error&quot;, &quot;Error&quot;, &quot;Enter the Recipients&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; } else if (&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.subject == undefined ||&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.subject == null ||&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.subject == &quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; ) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showToast(&quot;error&quot;, &quot;Error&quot;, &quot;Enter the Subject&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; } else if (&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.htmlBody == undefined ||&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.htmlBody == null ||&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.htmlBody == &quot;&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; ) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showToast(&quot;error&quot;, &quot;Error&quot;, &quot;Enter the Content&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; this.showModelLoading = true;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; sendEmail({&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; leadId: this.recordId,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; toAddress: this.recipients,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; subject: this.subject,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; body: this.htmlBody&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .then((result) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showToast(&quot;success&quot;, &quot;Success!&quot;, &quot;Email sent successfully.&quot;);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.closeEmailModel();&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; })&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .catch((error) =&amp;gt; {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showModelLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.error = error;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.showToast(&quot;error&quot;, &quot;Email sending failed!&quot;, this.error);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; closeEmailModel() {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.recipients = this.selectedrecipients;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.selectedTemplate = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.subject = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.htmlBody = undefined;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showModelLoading = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.showModal = false;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; showToast(type, title, msg) {&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; const evt = new ShowToastEvent({&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; title: title,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; message: msg,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; variant: type,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; mode: &quot;dismissable&quot;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; &amp;nbsp; this.dispatchEvent(evt);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&amp;nbsp; }&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;AccountController.apxc&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;public class &lt;/span&gt;&lt;/span&gt;&lt;b style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;AccountController&lt;/b&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt; {
    @AuraEnabled(cacheable=true)
    public static List&amp;lt;partnerData&amp;gt; getPartners(String recId, String searchKey){
        String partnerName;
        if(String.isNotBlank(searchKey)){
            partnerName = searchKey+&#39;%&#39;;
        }
        List&amp;lt;partnerData&amp;gt; partnerList = new List&amp;lt;partnerData&amp;gt;();
        for(Contact con : [SELECT Id,FirstName,LastName,Email,Phone,MailingCountry From Contact where FirstName like:partnerName]){
                                                     partnerList.add(new partnerData(con));                              
                                                 }
        return partnerList;
    }
    @AuraEnabled
    public static String getRecipients(List&amp;lt;String&amp;gt; recIds){
        Set&amp;lt;String&amp;gt; recSet = new Set&amp;lt;String&amp;gt;();
        for(Contact con : &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;line-height: 19px;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;[SELE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;CT Id,FirstName,LastName,Email,Phone,MailingCountry From Contact&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;
                                                 Where Id IN:recIds order by Name]){
                                                     &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;recSet.add(con.Email);&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;
                                                 }
        
        return String.join(new List&amp;lt;String&amp;gt;(recSet),&#39;;&#39;);
    }
    @AuraEnabled
    public static map&amp;lt;string,string&amp;gt; getEmailBody(String leadId, String templateName){
        map&amp;lt;string,string&amp;gt; emailmap = new map&amp;lt;string,string&amp;gt;();
        EmailTemplate et = [select id,Name,Subject,Body from EmailTemplate where Name=:templateName];
        Messaging.SingleEmailMessage email = 
            Messaging.renderStoredEmailTemplate(et.id, leadId ,null);
        if(email.getHtmlBody() != null ){
            emailmap.put(email.getSubject(),email.getHtmlBody());
        }else{
            emailmap.put(email.getSubject(),email.getPlainTextBody());
        }        
        return emailmap;
    }
    @AuraEnabled
    public static String sendEmail(String leadId,String toAddress,String subject,String body){
        List&amp;lt;Messaging.SingleEmailMessage&amp;gt; mails =  new List&amp;lt;Messaging.SingleEmailMessage&amp;gt;();     
        Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
        mail.setToAddresses(toAddress.split(&#39;;&#39;));
        mail.setTargetObjectId(leadId);
        //   mail.setReplyTo(&#39;noreply@gmail.com&#39;); // change it with your mail address.
        //  mail.setSenderDisplayName(&#39;salesforce User&#39;); 
        mail.setSubject(subject);
        mail.setHtmlBody(body);
        mail.setTreatTargetObjectAsRecipient(false);
        mail.setSaveAsActivity(true);
        mails.add(mail);
        try{
            Messaging.sendEmail(mails);
            return &#39;Success&#39;;
        }catch(exception e){
            return e.getMessage();
        }        
    }
    public class partnerData{
        @AuraEnabled
        public string Id{get;set;}
        @AuraEnabled
        public string FirstName{get;set;}
        @AuraEnabled
        public string LastName{get;set;}
        @AuraEnabled
        public string Email{get;set;}
        @AuraEnabled
        public string Phone{get;set;}
        @AuraEnabled
        public string MailingCountry{get;set;}  
        
        public partnerData(Contactpartner){
            this.Id 		 = partner.Id;
            this.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;FirstName&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;= partner.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;FirstName&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;;
            this.LastName&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;= partner.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;LastName&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;;
            this.Email&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;= partner.Email;
            this.Phone &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;  &lt;/span&gt;= partner.Phone;
            this.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;MailingCountry&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;= partner.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;MailingCountry&lt;/span&gt;&lt;span style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-size: 14px; white-space: pre;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Courier New, monospace;&quot;&gt;;
        }
    }
}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; line-height: 19px; white-space: pre;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/8869457265990536733/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2022/09/lwc-datatable-with-pagination-and-keep.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8869457265990536733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8869457265990536733'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2022/09/lwc-datatable-with-pagination-and-keep.html' title='LWC Datatable with Pagination and keep selected rows persistent'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-176934451500165565</id><published>2022-09-26T17:53:00.005+05:30</published><updated>2024-05-29T19:03:40.228+05:30</updated><title type='text'>SOQL to view all permissions enabled for a Permisssionset</title><content type='html'>&lt;p&gt;SELECT Id, Name, Label, LicenseId, ProfileId, IsOwnedByProfile, IsCustom, PermissionsEmailSingle, PermissionsEmailMass, PermissionsEditTask, PermissionsEditEvent, PermissionsExportReport, PermissionsImportPersonal, PermissionsDataExport, PermissionsManageUsers, PermissionsEditPublicFilters, PermissionsEditPublicTemplates, PermissionsModifyAllData, PermissionsManageCases, PermissionsMassInlineEdit, PermissionsEditKnowledge, PermissionsManageKnowledge, PermissionsManageSolutions, PermissionsCustomizeApplication, PermissionsEditReadonlyFields, PermissionsRunReports, PermissionsViewSetup, PermissionsTransferAnyEntity, PermissionsNewReportBuilder, PermissionsActivateContract, PermissionsActivateOrder, PermissionsImportLeads, PermissionsManageLeads, PermissionsTransferAnyLead, PermissionsViewAllData, PermissionsEditPublicDocuments, PermissionsViewEncryptedData, PermissionsEditBrandTemplates, PermissionsEditHtmlTemplates, PermissionsChatterInternalUser, PermissionsManageEncryptionKeys, PermissionsDeleteActivatedContract, PermissionsChatterInviteExternalUsers, PermissionsSendSitRequests, PermissionsOverrideForecasts, PermissionsViewAllForecasts, PermissionsApiUserOnly, PermissionsManageRemoteAccess, PermissionsCanUseNewDashboardBuilder, PermissionsManageCategories, PermissionsConvertLeads, PermissionsPasswordNeverExpires, PermissionsUseTeamReassignWizards, PermissionsEditActivatedOrders, PermissionsInstallPackaging, PermissionsPublishPackaging, PermissionsManagePartners, PermissionsChatterOwnGroups, PermissionsEditOppLineItemUnitPrice, PermissionsCreatePackaging, PermissionsBulkApiHardDelete, PermissionsInboundMigrationToolsUser, PermissionsSolutionImport, PermissionsManageCallCenters, PermissionsManageSynonyms, PermissionsOutboundMigrationToolsUser, PermissionsDelegatedPortalUserAdmin, PermissionsViewContent, PermissionsManageEmailClientConfig, PermissionsEnableNotifications, PermissionsManageDataIntegrations, PermissionsViewDataCategories, PermissionsManageDataCategories, PermissionsAuthorApex, PermissionsManageMobile, PermissionsApiEnabled, PermissionsManageCustomReportTypes, PermissionsManagePartnerNetConn, PermissionsEditCaseComments, PermissionsTransferAnyCase, PermissionsContentAdministrator, PermissionsCreateWorkspaces, PermissionsManageContentPermissions, PermissionsManageContentProperties, PermissionsManageContentTypes, PermissionsScheduleJob, PermissionsManageExchangeConfig, PermissionsManageAnalyticSnapshots, PermissionsScheduleReports, PermissionsManageBusinessHourHolidays, PermissionsManageDynamicDashboards, PermissionsManageInteraction, PermissionsViewMyTeamsDashboards, PermissionsModerateChatter, PermissionsResetPasswords, PermissionsFlowUFLRequired, PermissionsCanInsertFeedSystemFields, PermissionsActivitiesAccess, PermissionsManageKnowledgeImportExport, PermissionsEmailTemplateManagement, PermissionsEmailAdministration, PermissionsManageChatterMessages, PermissionsForceTwoFactor, PermissionsViewEventLogFiles, PermissionsManageNetworks,&amp;nbsp; PermissionsManageAuthProviders, PermissionsRunFlow, PermissionsViewGlobalHeader, PermissionsManageQuotas, PermissionsCreateCustomizeDashboards, PermissionsCreateDashboardFolders, PermissionsViewPublicDashboards, PermissionsManageDashbdsInPubFolders, PermissionsCreateCustomizeReports, PermissionsCreateReportFolders, PermissionsViewPublicReports, PermissionsManageReportsInPubFolders, PermissionsEditMyDashboards, PermissionsEditMyReports, PermissionsViewAllUsers, PermissionsAllowUniversalSearch, PermissionsConnectOrgToEnvironmentHub, PermissionsCreateCustomizeFilters, PermissionsContentHubUser, PermissionsModerateNetworkFeeds, PermissionsModerateNetworkFiles, PermissionsGovernNetworks, PermissionsSalesConsole, PermissionsTwoFactorApi, PermissionsDeleteTopics, PermissionsEditTopics, PermissionsCreateTopics, PermissionsAssignTopics, PermissionsIdentityEnabled, PermissionsIdentityConnect, PermissionsAllowViewKnowledge, PermissionsContentWorkspaces,&amp;nbsp; PermissionsManageSearchPromotionRules, PermissionsCustomMobileAppsAccess, PermissionsViewHelpLink, PermissionsManageProfilesPermissionsets, PermissionsAssignPermissionSets, PermissionsManageRoles, PermissionsManageIpAddresses, PermissionsManageSharing, PermissionsManageInternalUsers, PermissionsManagePasswordPolicies, PermissionsManageLoginAccessPolicies, PermissionsManageCustomPermissions, PermissionsCanVerifyComment, PermissionsManageUnlistedGroups, PermissionsStdAutomaticActivityCapture, PermissionsInsightsAppDashboardEditor, PermissionsManageTwoFactor, PermissionsInsightsAppUser, PermissionsInsightsAppAdmin, PermissionsInsightsAppEltEditor, PermissionsInsightsAppUploadUser, PermissionsInsightsCreateApplication, PermissionsDebugApex, PermissionsLightningExperienceUser, PermissionsConfigCustomRecs, PermissionsSubmitMacrosAllowed, PermissionsBulkMacrosAllowed, PermissionsShareInternalArticles, PermissionsModerateNetworkMessages, PermissionsManageSessionPermissionSets, PermissionsManageTemplatedApp, PermissionsUseTemplatedApp, PermissionsSendAnnouncementEmails, PermissionsChatterEditOwnPost, PermissionsChatterEditOwnRecordPost, PermissionsCreateAuditFields, PermissionsUpdateWithInactiveOwner, PermissionsWaveTrendReports, PermissionsWaveTabularDownload, PermissionsManageSandboxes, PermissionsAutomaticActivityCapture, PermissionsImportCustomObjects, PermissionsDelegatedTwoFactor, PermissionsChatterComposeUiCodesnippet, PermissionsSelectFilesFromSalesforce, PermissionsModerateNetworkUsers, PermissionsMergeTopics, PermissionsSubscribeToLightningReports, PermissionsManagePvtRptsAndDashbds, PermissionsAllowLightningLogin, PermissionsCampaignInfluence2, PermissionsViewDataAssessment, PermissionsRemoveDirectMessageMembers, PermissionsCanApproveFeedPost, PermissionsAddDirectMessageMembers, PermissionsAllowViewEditConvertedLeads,&amp;nbsp; PermissionsShowCompanyNameAsUserBadge, PermissionsAccessCMC,&amp;nbsp; PermissionsViewHealthCheck, PermissionsManageHealthCheck, PermissionsPackaging2, PermissionsManageCertificates, PermissionsCreateReportInLightning, PermissionsPreventClassicExperience, PermissionsHideReadByList, PermissionsUseSmartDataDiscovery, PermissionsGetSmartDataDiscovery, PermissionsCreateUpdateSDDDataset, PermissionsCreateUpdateSDDStory, PermissionsManageSmartDataDiscovery, PermissionsShareSmartDataDiscoveryStory, PermissionsManageSmartDataDiscoveryModel, PermissionsListEmailSend, PermissionsFeedPinning, PermissionsChangeDashboardColors, PermissionsManageRecommendationStrategies, PermissionsManagePropositions, PermissionsCloseConversations, PermissionsSubscribeReportRolesGrps, PermissionsSubscribeDashboardRolesGrps, PermissionsUseWebLink, PermissionsHasUnlimitedNBAExecutions, PermissionsViewOnlyEmbeddedAppUser, PermissionsAdoptionAnalyticsUser, PermissionsViewAllActivities, PermissionsSubscribeReportToOtherUsers, PermissionsLightningConsoleAllowedForUser, PermissionsSubscribeReportsRunAsUser, PermissionsSubscribeToLightningDashboards, PermissionsSubscribeDashboardToOtherUsers, PermissionsCreateLtngTempInPub, PermissionsTransactionalEmailSend, PermissionsViewPrivateStaticResources, PermissionsViewCustomerSentiment, PermissionsCreateLtngTempFolder, PermissionsApexRestServices, PermissionsEnableCommunityAppLauncher, PermissionsGiveRecognitionBadge, PermissionsCanRunAnalysis,&amp;nbsp; PermissionsLtngPromoReserved01UserPerm, PermissionsManageSubscriptions, PermissionsWaveManagePrivateAssetsUser, PermissionsCanEditDataPrepRecipe, PermissionsAddAnalyticsRemoteConnections, PermissionsManageSurveys, PermissionsRecordVisibilityAPI, PermissionsViewRoles,&amp;nbsp; PermissionsSmartDataDiscoveryForCommunity, PermissionsCanManageMaps, PermissionsStoryOnDSWithPredicate, PermissionsModifyDataClassification, PermissionsPrivacyDataAccess, PermissionsQueryAllFiles, PermissionsModifyMetadata,&amp;nbsp; PermissionsSandboxTestingInCommunityApp, PermissionsCanEditPrompts, PermissionsViewUserPII, Description, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, NamespacePrefix, HasActivationRequired, Type FROM PermissionSet&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/176934451500165565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2022/09/soql-to-view-all-permissions-enabled.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/176934451500165565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/176934451500165565'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2022/09/soql-to-view-all-permissions-enabled.html' title='SOQL to view all permissions enabled for a Permisssionset'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-6176741987364986850</id><published>2022-08-30T12:11:00.006+05:30</published><updated>2022-08-30T12:11:41.848+05:30</updated><title type='text'>How to login to Salesforce using Session id</title><content type='html'>&lt;p&gt;Replace host url and session id in url&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span style=&quot;background-color: #f0f8e2; color: #c82a25; font-family: DSCDefaultFontRegular; font-size: 14px;&quot;&gt;https://&amp;lt;endpoint host&amp;gt;/secur/frontdoor.jsp?sid=&amp;lt;session id&amp;gt;&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/6176741987364986850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2022/08/how-to-login-to-salesforce-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6176741987364986850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6176741987364986850'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2022/08/how-to-login-to-salesforce-using.html' title='How to login to Salesforce using Session id'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-2791621856756726945</id><published>2021-02-04T08:29:00.000+05:30</published><updated>2021-02-04T08:29:45.136+05:30</updated><title type='text'>How to Run Schedule Apex only once or every few mins</title><content type='html'>&lt;p&gt;Using Scheduled Apex&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Salesforce Sans&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;&amp;nbsp;in UI, you cannot set a scheduled class to run only once. It&#39;s always recurring. So, you&#39;ll need to use&amp;nbsp;System.scheduled via the system log to implement a workaround.&lt;/span&gt;&lt;/p&gt;&lt;h3 style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Salesforce Sans&amp;quot;, Arial, sans-serif; font-size: 16px !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.1; margin: 20px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example code for running a job 10 minutes from now only once&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div&gt;String hour = String.valueOf(Datetime.now().hour());&lt;/div&gt;&lt;div&gt;String min = String.valueOf(Datetime.now().minute() + &lt;b&gt;10&lt;/b&gt;);&amp;nbsp;&lt;/div&gt;&lt;div&gt;String ss = String.valueOf(Datetime.now().second());&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//parse to cron expression&lt;/div&gt;&lt;div&gt;String nextFireTime = ss + &#39; &#39; + min + &#39; &#39; + hour + &#39; * * ?&#39;;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;MyScheduledJob &lt;/b&gt;s = new &lt;b&gt;MyScheduledJob&lt;/b&gt;();&amp;nbsp;&lt;/div&gt;&lt;div&gt;System.schedule(&#39;Job Started At &#39; + String.valueOf(Datetime.now()), nextFireTime, s);&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Salesforce Sans&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;Abort the job by adding a finish method to your class that implements the Schedulable Interface. This stops the job from running more than once.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Salesforce Sans&amp;quot;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Salesforce Sans&amp;quot;, Arial, sans-serif; font-size: 16px !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.1; margin: 20px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example code to abort the job&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;div&gt;global void finish(Database.BatchableContext BC)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;// Get the ID of the AsyncApexJob representing this batch job from Database.BatchableContext.&lt;/div&gt;&lt;div&gt;// Query the AsyncApexJob object to retrieve the current job&#39;s information.&lt;/div&gt;&lt;div&gt;AsyncApexJob a = [SELECT Id, Status, NumberOfErrors, JobItemsProcessed, TotalJobItems, CreatedBy.Email ..... FROM AsyncApexJob WHERE Id =&amp;nbsp;&lt;/div&gt;&lt;div&gt;:BC.getJobId()];&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;//then use the active job id and abort it&lt;/div&gt;&lt;div&gt;system.abortJob(a.id);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;h3 style=&quot;background-color: white; border: 0px; box-sizing: border-box; color: #333333; font-family: &amp;quot;Salesforce Sans&amp;quot;, Arial, sans-serif; font-size: 16px !important; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: 1.1; margin: 20px 0px 10px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Example code for running a job every 2 mins&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: transparent !important; border: 0px; box-sizing: border-box; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;Integer&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot;&gt;frequency&amp;nbsp;&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;= 2;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;Integer totalIterations = 60/frequency - 1;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;for(Integer i = 0; i &amp;lt;= totalIterations; i++){&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;Integer count = i*frequency;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;String minuteString = (count &amp;lt; 10) ? &#39;0&#39; + count : &#39;&#39; + count;&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;System.schedule(&#39;Scheduled Job &#39; + i, &#39;0 &#39; + minuteString + &#39; * * * ?&#39;, new&amp;nbsp;&lt;/span&gt;&lt;b&gt;MyScheduledJob&lt;/b&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;());&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px; user-select: all;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: -apple-system, &amp;quot;Segoe UI&amp;quot;, &amp;quot;Segoe UI Emoji&amp;quot;, sans-serif, Meiryo; font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/2791621856756726945/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2021/02/how-to-run-schedule-apex-only-once-or.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/2791621856756726945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/2791621856756726945'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2021/02/how-to-run-schedule-apex-only-once-or.html' title='How to Run Schedule Apex only once or every few mins'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-5263606729223565796</id><published>2020-12-20T21:43:00.025+05:30</published><updated>2020-12-22T17:01:39.667+05:30</updated><title type='text'>How to start learning Salesforce</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;font-family: Lora; font-size: medium;&quot;&gt;Salesforce.com
is a company that leverages cloud computing to design Customer Relationship
Management (CRM) software for organizations. This CRM software can be used by
salespeople to track sales, support people to track the resolution of queries
and cases, and the entire workforce of a company to collaborate with each other.&lt;/span&gt;&lt;span style=&quot;font-family: Calibri, sans-serif;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;The best of SFDC is its vast documentation and publicly available
resources to learn easily.&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;My goal is to help you learn Salesforce as quickly as possible!&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;Disclaimer:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;all the resources provided in this blog post are publicly
available I am just guiding you to those resources.&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;Modules in the salesforce&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp;Admin&lt;br /&gt;
2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Development&lt;br /&gt;
3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Lightning Aura Components&lt;br /&gt;
4.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Lightning Web Components&lt;br /&gt;
5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Integration&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;I would recommend start learning in this flow&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;Admin &amp;gt;&amp;gt; Development &amp;gt;&amp;gt; Lightning Aura Components (or)
Lightning Web Components&amp;nbsp;&amp;nbsp;&amp;gt;&amp;gt; Integration&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;font-family: Lora;&quot;&gt;Trailhead is the fun way to learn Salesforce, checkout about
Trailhead here:&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/content/learn/modules/trailhead_basics/get-started-with-trailhead&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/content/learn/modules/trailhead_basics/get-started-with-trailhead&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: Lora; font-size: 16px;&quot;&gt;Click on each link to see details&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;1.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 7pt; line-height: 107%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;Admin&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt; line-height: 107%;&quot;&gt;:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Trailhead&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 16pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 115%; text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/content/learn/trails/force_com_admin_beginner&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/content/learn/trails/force_com_admin_beginner&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 115%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: .25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/trails/force_com_admin_intermediate&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/trails/force_com_admin_intermediate&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 115%; mso-margin-bottom-alt: auto; mso-margin-top-alt: auto; text-indent: .25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/trails/force_com_admin_advanced&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/trails/force_com_admin_advanced&lt;/a&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Guide&lt;/span&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 115%; margin-left: 0.25in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://help.salesforce.com/articleView?id=basics_welcome_salesforce_users.htm&amp;amp;type=5&quot; target=&quot;_blank&quot;&gt;https://help.salesforce.com/articleView?id=basics_welcome_salesforce_users.htm&amp;amp;type=5&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;line-height: 115%; margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 115%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://help.salesforce.com/articleView?id=overview.htm&amp;amp;type=5#quicktour_tips&quot; target=&quot;_blank&quot;&gt;https://help.salesforce.com/articleView?id=overview.htm&amp;amp;type=5#quicktour_tips&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Blogs&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://www.apexhours.com/introduction-to-salesforce/&quot; target=&quot;_blank&quot;&gt;http://www.apexhours.com/introduction-to-salesforce/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Video Tutorial:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;line-height: 150%; margin-left: 0.25in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLaGX-30v1lh1BaUKgXa05gqrOP0vUg_6i&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/playlist?list=PLaGX-30v1lh1BaUKgXa05gqrOP0vUg_6i&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 0.25in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/c/Salesforce/playlists&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/c/Salesforce/playlists&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 0.25in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=bOzlOkPU0cI&amp;amp;list=PLdYQMTciVWO9xjvh1J7SXjhzpnzWvLih4&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=bOzlOkPU0cI&amp;amp;list=PLdYQMTciVWO9xjvh1J7SXjhzpnzWvLih4&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;line-height: 150%; margin-left: 0.25in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=nUARw_Yci3Y&amp;amp;list=PLy9U5GDpYZVPfD-kJg_hceKPo6JZi5BpT&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=nUARw_Yci3Y&amp;amp;list=PLy9U5GDpYZVPfD-kJg_hceKPo6JZi5BpT&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 150%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;2.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 7pt; line-height: 107%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;Development:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Trailhead&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/content/learn/trails/force_com_dev_beginner&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/content/learn/trails/force_com_dev_beginner&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/trails/force_com_dev_intermediate&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/trails/force_com_dev_intermediate&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/trails/force_com_dev_advanced&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/trails/force_com_dev_advanced&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Guide&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_apex_language_reference.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_apex_language_reference.pdf&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_pages_developers_guide.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_pages_developers_guide.pdf&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Blogs&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc-lightning.com/p/triggers.html&quot; target=&quot;_blank&quot;&gt;https://www.sfdc-lightning.com/p/triggers.html&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc-lightning.com/p/apexvisualforce.html&quot; target=&quot;_blank&quot;&gt;https://www.sfdc-lightning.com/p/apexvisualforce.html&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Video Tutorial:&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLaGX-30v1lh1e8roeCUumUEel5ukdPubj&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/playlist?list=PLaGX-30v1lh1e8roeCUumUEel5ukdPubj&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc99.com/video-tutorials/&quot; target=&quot;_blank&quot;&gt;https://www.sfdc99.com/video-tutorials/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc99.com/apex-academy/&quot; target=&quot;_blank&quot;&gt;https://www.sfdc99.com/apex-academy/&lt;/a&gt;&lt;/span&gt;&lt;a href=&quot;https://www.sfdc99.com/apex-academy/&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/c/SalesforceDevelopers/playlists&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/c/SalesforceDevelopers/playlists&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=iPlfPKBXhAw&amp;amp;list=PLdYQMTciVWO8D1lxAzLdEwmt1k8f8ic0t&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=iPlfPKBXhAw&amp;amp;list=PLdYQMTciVWO8D1lxAzLdEwmt1k8f8ic0t&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;3.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 7pt; line-height: 107%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;Lightning Aura Components:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Trailhead&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/trails/lex_dev&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/trails/lex_dev&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Guide&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/lightning.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/lightning.pdf&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Blogs&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc-lightning.com/p/salesforce-lightning.html&quot; target=&quot;_blank&quot;&gt;https://www.sfdc-lightning.com/p/salesforce-lightning.html&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Video tutorial:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=FrnmcH0Lrkw&amp;amp;list=PLQXsHnNZgiNe35JsuHAb-PsDmD4kwEIsg&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=FrnmcH0Lrkw&amp;amp;list=PLQXsHnNZgiNe35JsuHAb-PsDmD4kwEIsg&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=CiqCfsTrlLA&amp;amp;list=PLV3ll8m0ZlppQBGJUItatmL8HU2UtmByd&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=CiqCfsTrlLA&amp;amp;list=PLV3ll8m0ZlppQBGJUItatmL8HU2UtmByd&lt;/a&gt;&lt;/span&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=CiqCfsTrlLA&amp;amp;list=PLV3ll8m0ZlppQBGJUItatmL8HU2UtmByd&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;4.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 7pt; line-height: 107%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;Lightning Web Components:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Trailhead&lt;/span&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/trails/build-lightning-web-components&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/trails/build-lightning-web-components&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Guide&lt;/span&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://developer.salesforce.com/docs/component-library/documentation/en/lwc&quot; target=&quot;_blank&quot;&gt;https://developer.salesforce.com/docs/component-library/documentation/en/lwc&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Blogs&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc-lightning.com/p/lightning-web-components.html&quot; target=&quot;_blank&quot;&gt;https://www.sfdc-lightning.com/p/lightning-web-components.html&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Video Tutorial:&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLaGX-30v1lh2R0DmV94hqMtPSpiIT7xmO&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/playlist?list=PLaGX-30v1lh2R0DmV94hqMtPSpiIT7xmO&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=dcRM7Mq541Y&amp;amp;list=PLV3ll8m0Zlpog5kPVuyYc1d3CzbsNqPxK&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=dcRM7Mq541Y&amp;amp;list=PLV3ll8m0Zlpog5kPVuyYc1d3CzbsNqPxK&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=7hhdKS-yChs&amp;amp;list=PLgIMQe2PKPSJ0hK7DInqhLlw7QK5Pt6fD&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=7hhdKS-yChs&amp;amp;list=PLgIMQe2PKPSJ0hK7DInqhLlw7QK5Pt6fD&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=6p2Ia4XWnNw&amp;amp;list=PL-JzyFWuCbkKcFSOCRlCUk79YbET5QvZC&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=6p2Ia4XWnNw&amp;amp;list=PL-JzyFWuCbkKcFSOCRlCUk79YbET5QvZC&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in; text-indent: -0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;5.&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 7pt; line-height: 107%;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 16pt; line-height: 107%;&quot;&gt;Integration:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Trailhead&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services&quot; target=&quot;_blank&quot;&gt;https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Guide&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/api_rest.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/api_rest.pdf&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/apex_api.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/apex_api.pdf&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Blogs&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;:&lt;span style=&quot;font-size: 13.5pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc-lightning.com/p/integration-topics.html&quot; target=&quot;_blank&quot;&gt;https://www.sfdc-lightning.com/p/integration-topics.html&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoListParagraph&quot; style=&quot;margin-left: 0.25in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;line-height: 107%;&quot;&gt;Video Tutorial:&lt;span style=&quot;font-size: 14pt;&quot;&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLaGX-30v1lh2Y-TZgeQWSnGQWgWHP9mPH&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/playlist?list=PLaGX-30v1lh2Y-TZgeQWSnGQWgWHP9mPH&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=Jcmw5WqjNwU&amp;amp;list=PLV3ll8m0ZlpqVOJCTFJu8uNJ-f2OppInR&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=Jcmw5WqjNwU&amp;amp;list=PLV3ll8m0ZlpqVOJCTFJu8uNJ-f2OppInR&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.25in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=H7k3zlPGlkA&amp;amp;list=PLuL63vr-9xHzI83rrXaXHDcsfVqzrp0iO&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=H7k3zlPGlkA&amp;amp;list=PLuL63vr-9xHzI83rrXaXHDcsfVqzrp0iO&lt;/a&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;Data Loader:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_data_loader.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/228/latest/en-us/sfdc/pdf/salesforce_data_loader.pdf&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=fnPXaq5A-2c&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=fnPXaq5A-2c&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;ANT Migration Tool:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://resources.docs.salesforce.com/sfdc/pdf/salesforce_migration_guide.pdf&quot; target=&quot;_blank&quot;&gt;https://resources.docs.salesforce.com/sfdc/pdf/salesforce_migration_guide.pdf&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/watch?v=i_FwNDegf_o&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/watch?v=i_FwNDegf_o&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;Marketing Cloud:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLaGX-30v1lh34rpIP_g1Daabqq7_xvcmp&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/playlist?list=PLaGX-30v1lh34rpIP_g1Daabqq7_xvcmp&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;Community Cloud:&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.youtube.com/playlist?list=PLaGX-30v1lh0yjm8UbB-4smaykJzCsH2y&quot; target=&quot;_blank&quot;&gt;https://www.youtube.com/playlist?list=PLaGX-30v1lh0yjm8UbB-4smaykJzCsH2y&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u2:p&gt;&amp;nbsp;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 14pt; line-height: 107%;&quot;&gt;Useful Blog URLs&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 13.5pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://jenwlee.com/&quot; target=&quot;_blank&quot;&gt;https://jenwlee.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://automationchampion.com/&quot; target=&quot;_blank&quot;&gt;https://automationchampion.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://vinaychaturvedi.com/&quot; target=&quot;_blank&quot;&gt;http://vinaychaturvedi.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.simplysfdc.com/&quot; target=&quot;_blank&quot;&gt;https://www.simplysfdc.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.asagarwal.com/&quot; target=&quot;_blank&quot;&gt;https://www.asagarwal.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://www.miraforce.net/&quot; target=&quot;_blank&quot;&gt;http://www.miraforce.net/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://salesforceweek.ly/&quot; target=&quot;_blank&quot;&gt;https://salesforceweek.ly/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://salesforcediaries.com/&quot; target=&quot;_blank&quot;&gt;https://salesforcediaries.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;a href=&quot;https://www.salesforceblogger.com/&quot; target=&quot;_blank&quot;&gt;https://www.salesforceblogger.com/&lt;/a&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc-lightning.com/&quot; target=&quot;_blank&quot;&gt;https://www.sfdc-lightning.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.apexhours.com/blog/&quot; target=&quot;_blank&quot;&gt;https://www.apexhours.com/blog/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdc99.com/&quot; target=&quot;_blank&quot;&gt;https://www.sfdc99.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.jitendrazaa.com/blog/&quot; target=&quot;_blank&quot;&gt;https://www.jitendrazaa.com/blog/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://blog.enree.co/&quot; target=&quot;_blank&quot;&gt;https://blog.enree.co/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://sfdcfanboy.com/&quot; target=&quot;_blank&quot;&gt;https://sfdcfanboy.com/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://hellosnl.blogspot.com/&quot; target=&quot;_blank&quot;&gt;https://hellosnl.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.brcline.com/blog/category/programming/salesforce&quot; target=&quot;_blank&quot;&gt;https://www.brcline.com/blog/category/programming/salesforce&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://www.sfdcpanda.com/&quot; target=&quot;_blank&quot;&gt;http://www.sfdcpanda.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://santanuboral.blogspot.com/?m=0&quot; target=&quot;_blank&quot;&gt;http://santanuboral.blogspot.com/?m=0&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.auraforce.ca/&quot; target=&quot;_blank&quot;&gt;https://www.auraforce.ca/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://sfdcmonkey.com/&quot; target=&quot;_blank&quot;&gt;https://sfdcmonkey.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;http://theblogreaders.com/&quot; target=&quot;_blank&quot;&gt;http://theblogreaders.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.sfdcpanther.com/&quot; target=&quot;_blank&quot;&gt;https://www.sfdcpanther.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;color: blue; font-size: 12pt;&quot;&gt;&lt;a href=&quot;https://www.sfdcstuff.com/?m=0&quot; target=&quot;_blank&quot;&gt;https://www.sfdcstuff.com/?m=0&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://nitinindora.wordpress.com/&quot; target=&quot;_blank&quot;&gt;https://nitinindora.wordpress.com/&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;a href=&quot;https://www.srinivas4sfdc.com/?m=0&quot; target=&quot;_blank&quot;&gt;https://www.srinivas4sfdc.com/?m=0&lt;/a&gt;&lt;/span&gt;&lt;u2:p&gt;&lt;/u2:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;u1:p&gt;&lt;/u1:p&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 107%;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;span class=&quot;MsoHyperlink&quot;&gt;&lt;span style=&quot;font-size: 12pt; line-height: 17.12px;&quot;&gt;&lt;a href=&quot;https://bobbuzzard.blogspot.com&quot; target=&quot;_blank&quot;&gt;https://bobbuzzard.blogspot.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 0.5in;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/5263606729223565796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2020/12/how-to-start-learning-salesforce.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/5263606729223565796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/5263606729223565796'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2020/12/how-to-start-learning-salesforce.html' title='How to start learning Salesforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-3373101111930887538</id><published>2019-06-21T12:42:00.000+05:30</published><updated>2020-12-22T17:07:35.194+05:30</updated><title type='text'>Custom permissions in Salesforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;Custom permissions let you define access checks that can be assigned to users via permission sets or profiles, similar to how you assign user permissions and other access settings. For example, you can define access checks in Apex that make a button on a Visualforce page available only if a user has the appropriate custom permission.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;1. Create a Custom Permission.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihvLenRTozzuoZc1aQ_XC-x0vZ5wqHd-vh_UZZFJqG-XUmDho0INFKknqDeDxpdYROW2JfMva27z7vDBKpOJMs0o_MheKhUKlN5SmsCoYBzaH3nMOF2kGBxRhIIW_5EyMH4flo_6CYcKuT/s1600/Sample+Custom+Permission+in+Salesforce.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #888888; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;365&quot; data-original-width=&quot;1154&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihvLenRTozzuoZc1aQ_XC-x0vZ5wqHd-vh_UZZFJqG-XUmDho0INFKknqDeDxpdYROW2JfMva27z7vDBKpOJMs0o_MheKhUKlN5SmsCoYBzaH3nMOF2kGBxRhIIW_5EyMH4flo_6CYcKuT/s640/Sample+Custom+Permission+in+Salesforce.png&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; padding: 5px; position: relative;&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;2. Assign it to your profile.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmdFXEAwBR01D-BzzB5Ib50CaoiDPga5oaYFTdb-zIMYScabU4nJciBimFlMSU4UKlHFdtYtWkZH6wuRm6Y_v3reEIAF3vFGhW41v0oKwvjgIT2_L1XxV9myW10LFrx1saWrg8Ww7WvLgC/s1600/Assigning+Custom+Permission+to+a+profile+in+Salesforce.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #888888; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;222&quot; data-original-width=&quot;467&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmdFXEAwBR01D-BzzB5Ib50CaoiDPga5oaYFTdb-zIMYScabU4nJciBimFlMSU4UKlHFdtYtWkZH6wuRm6Y_v3reEIAF3vFGhW41v0oKwvjgIT2_L1XxV9myW10LFrx1saWrg8Ww7WvLgC/s1600/Assigning+Custom+Permission+to+a+profile+in+Salesforce.png&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; padding: 5px; position: relative;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;3. Use the sample code.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;b style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Visualforce Page:&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;apex:page controller=&quot;Sample&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; Checking Custom Permission in Visualforce page - {!$Permission.Create_Account}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; Checking Custom Permission from Apex Class - {!accessBool }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;b style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Apex Controller:&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;public with sharing class Sample {&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; public Boolean accessBool {get;set;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; public Sample() {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accessBool = checkUserHasCustomPermissionAccess(&#39;Create_Account&#39;, UserInfo.getUserId());&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; public static Boolean checkUserHasCustomPermissionAccess(String permissionName, Id userId) {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set &amp;lt; Id &amp;gt; permissionSetIds = new Set &amp;lt; Id &amp;gt;();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List &amp;lt; User &amp;gt; userList = new List &amp;lt; User &amp;gt;();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for ( SetupEntityAccess access : [ SELECT ParentId FROM SetupEntityAccess&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE SetupEntityId IN ( SELECT Id&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM CustomPermission&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE DeveloperName = :permissionName )&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ])&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; permissionSetIds.add(access.ParentId);&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; userList = [ SELECT Username FROM User WHERE Id IN (&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SELECT AssigneeId FROM PermissionSetAssignment&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE PermissionSetId IN :permissionSetIds AND AssigneeId =: userId ) ];&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return userList.isEmpty() ? false : true;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;Output:&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot; /&gt;&lt;b style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #666666; font-family: &amp;quot;Trebuchet MS&amp;quot;, Trebuchet, Verdana, sans-serif; font-size: 13.2px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHfPq18xVxAzBFF0cx386PmDkpVM-N_xyRtBerBGgK5K97m0JwBXFVRBNsO8BVmGYOI8Ju4JBnnal3I92AMdYPdub183r7LIenTUpUyLVhUir0Al0TltJ9tR8K8eNCmy_YXr2QsX8ulJke/s1600/Custom+Permission+in+Salesforce.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #33aaff; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;221&quot; data-original-width=&quot;558&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHfPq18xVxAzBFF0cx386PmDkpVM-N_xyRtBerBGgK5K97m0JwBXFVRBNsO8BVmGYOI8Ju4JBnnal3I92AMdYPdub183r7LIenTUpUyLVhUir0Al0TltJ9tR8K8eNCmy_YXr2QsX8ulJke/s1600/Custom+Permission+in+Salesforce.png&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border: 1px solid rgb(238, 238, 238); box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px; padding: 5px; position: relative;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/3373101111930887538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/06/custom-permissions-in-salesforce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3373101111930887538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3373101111930887538'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/06/custom-permissions-in-salesforce.html' title='Custom permissions in Salesforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihvLenRTozzuoZc1aQ_XC-x0vZ5wqHd-vh_UZZFJqG-XUmDho0INFKknqDeDxpdYROW2JfMva27z7vDBKpOJMs0o_MheKhUKlN5SmsCoYBzaH3nMOF2kGBxRhIIW_5EyMH4flo_6CYcKuT/s72-c/Sample+Custom+Permission+in+Salesforce.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-3018540323642944738</id><published>2018-06-21T07:46:00.004+05:30</published><updated>2018-06-21T08:23:42.371+05:30</updated><title type='text'>Closing window in Visualforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&lt;b&gt;Using JavaScript:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;apex:page showChat=&quot;false&quot; wizard=&quot;true&quot; sidebar=&quot;false&quot; &amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;!-- Javascript --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;script type = &quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function winClose()&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.close();&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;!-- End of Javascript--&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&lt;br /&gt;&amp;lt;apex:commandButton onComplete = &quot;winClose();&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&lt;b&gt;Using Apex PageReference :&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot; , &amp;quot;trebuchet&amp;quot; , &amp;quot;verdana&amp;quot; , sans-serif; font-size: 13.2px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;public PageReference method(){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(variable== null ||&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;&quot;&gt;variable&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;== &#39;&#39;){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,&#39;Please enter &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #274e13; font-family: &amp;quot;trebuchet ms&amp;quot;, trebuchet, verdana, sans-serif; font-size: 13.2px;&quot;&gt;variable&lt;/span&gt;&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;&#39;));&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 13.2px;&quot;&gt;&lt;span style=&quot;background-color: white; color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }else{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;return new PageReference(&#39;javascript:window.close()&#39;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #274e13; font-family: trebuchet ms, trebuchet, verdana, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.2px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/3018540323642944738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/06/closing-window-visualforce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3018540323642944738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3018540323642944738'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/06/closing-window-visualforce.html' title='Closing window in Visualforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-1781274062266372779</id><published>2018-06-13T11:59:00.001+05:30</published><updated>2018-06-13T11:59:08.926+05:30</updated><title type='text'>Difference between deactivate and freeze user in salesforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #444444; font-family: &amp;quot;Open Sans&amp;quot;, Arial, Verdana; font-size: 18px;&quot;&gt;In some cases, you can’t immediately deactivate a user such as when a user is selected in a custom hierarchy field or a user that’s assigned as the sole recipient of a workflow email alert. To prevent users from logging into your organization while you perform the steps to deactivate them you can freeze users.&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #444444; font-family: &amp;quot;Open Sans&amp;quot;, Arial, Verdana; font-size: 18px; line-height: 1.71429; list-style-image: initial; list-style-position: outside; margin: 0px 0px 1.71429rem; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;&quot;&gt;Freezing user doesn’t make their user licenses available for use in your organization.&lt;/li&gt;
&lt;li style=&quot;border: 0px; margin: 0px 0px 0px 2.57143rem; padding: 0px; vertical-align: baseline;&quot;&gt;Deactivating a user will be available user licenses available for use in your organization.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/1781274062266372779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/06/difference-between-deactivate-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/1781274062266372779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/1781274062266372779'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/06/difference-between-deactivate-and.html' title='Difference between deactivate and freeze user in salesforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-6801197440232665231</id><published>2018-05-18T15:22:00.000+05:30</published><updated>2018-07-16T13:55:43.438+05:30</updated><title type='text'>Salesforce Interview Questions and Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div&gt;
&lt;b&gt;&lt;a href=&quot;http://www.salesforce-interviewquestions.com/p/interview-questions.html?m=1&quot;&gt;http://www.salesforce-interviewquestions.com/p/interview-questions.html?m=1&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;
1. What is Cloud Computing ?&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
Cloud Computing is an approach to provide the following services -&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;SAAS (Software As A Service)&lt;/li&gt;
&lt;li&gt;PAAS (Platform As A Service)&lt;/li&gt;
&lt;li&gt;IAAS (Infrastructure As A Service)&lt;/li&gt;
&lt;/ul&gt;
With this approach everything can be done in internet (Using Application, Developing Application and distributing the hardware), no need of any minimum hardware requirements and no need to install any software in local system.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;2. What is Salesforce?&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Salesforce is a company which provides a web based tool called Salesforce&lt;/li&gt;
&lt;li&gt;Salesforce by following the Cloud Computing approach, providing SAAS and PAAS&lt;/li&gt;
&lt;li&gt;SAAS: Providing Sales, Marketing and Call Center applications as a service&lt;/li&gt;
&lt;li&gt;PAAS: Providing Force.com platform in which we can develop Apex (Programming language similar to Core Java) and Visualforce (Mark up language similar to HTML) logic.&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;7. What is the architecture of the salesforce?&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;MVC (&lt;/b&gt;Model View Controller ) Architecture Contains three components &lt;b&gt;Model&lt;/b&gt;,&lt;b&gt;View &lt;/b&gt;and &lt;b&gt;Controller.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;font-weight: bold;&quot;&gt;Model&amp;nbsp;&lt;/b&gt;is the Database ,&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;b&gt;View&amp;nbsp;&lt;/b&gt;&lt;/span&gt;is the user interface ,&lt;br /&gt;
&lt;b style=&quot;font-weight: bold;&quot;&gt;Controller &lt;/b&gt;is the&amp;nbsp;Business Logic.&lt;br /&gt;
&lt;br /&gt;
Model View Controller architecture separates the user interface layer which is called &lt;b&gt;VIEW &lt;/b&gt;from the data layer called &lt;b&gt;MODEL&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Controller &lt;/b&gt;layer is between &lt;b&gt;Model &lt;/b&gt;layer and &lt;b&gt;View &lt;/b&gt;layer. This layer connects both View and Model.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Salesforce follows MVC architecture,&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
In Salesforce point of view&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Model &lt;/b&gt;component will have &lt;b&gt;Standard objects&lt;/b&gt; and &lt;b&gt;Custom objects,&lt;/b&gt;which will store Data.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;View &lt;/b&gt;component defines how the data is represented. Visualforce pages, Standard pages are the view  components. Page layouts,Apps and Tabs are also comes under this components.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;Controller &lt;/b&gt;components defines the business logic. Here we have standard controller and custom controllers. Some of the components under this category are Apex classes, triggers, workflows, approvals and validation rules,(Save, Edit, New, Cancel and Delete - upon click on these button salesforce execute some logic from controller).&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;geneva&amp;quot; , sans-serif; font-size: 16px; text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;8. What is the difference between 15 digit and 18 digit id in Salesforce?&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;In Salesforce, whenever user create any component (Object, field, tab etc...) or record then salesforce will generate an unique id with which user can identify the record or component.&lt;/li&gt;
&lt;li&gt;After creating the record, in the URL user can see the id of the record which is of 15 digits length.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Through user interface user always see 15 digit id which is Cases-Sensitive.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;If the user query the existing records from the database through API (Either from Query Tool or from a program), it will always return 18 digit id which is Case-Insensitive.&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;Last 3 digits of the 18 digit represents checksum of the capitalization of 15 digit id.&lt;/li&gt;
&lt;li&gt;Based on the first 3 digits user can identify the object of the record.&lt;/li&gt;
&lt;li&gt;All the records belongs to same object will contain same first 3 digits.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;9.&lt;span style=&quot;background-color: white; font-family: sf-font-regular; font-size: 16.8px;&quot;&gt;Object Relationships?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; font-family: sf-font-regular; font-size: 16.8px;&quot;&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sf-font-regular;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Master-detail&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sf-font-regular;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Many-to-many&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sf-font-regular;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Lookup&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sf-font-regular;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;External lookup :&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;An external lookup relationship links a child standard, custom, or external object to a parent external object&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sf-font-regular;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Indirect lookup :&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;An indirect lookup relationship links a child external object to a parent standard or custom object.&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: sf-font-regular;&quot;&gt;&lt;span style=&quot;font-size: 16.8px;&quot;&gt;Hierarchical :&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;A special lookup relationship available for only the user object. It lets users use a lookup field to associate one user with another that does not directly or indirectly refer to itself.&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;10. Difference between standard controller and custom controller ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Standard controller:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px; margin-bottom: 10px; word-wrap: break-word;&quot;&gt;
If VF uses Standard controllers then it contains the functionality and logic that are used for standard Salesforce pages. For example, if you use the standard Accounts controller, clicking a&amp;nbsp;&lt;strong class=&quot;ph uicontrol&quot; style=&quot;font-family: DSCDefaultFontBold;&quot;&gt;Save&lt;/strong&gt;&amp;nbsp;button in a Visualforce page results in the same behavior as clicking&amp;nbsp;&lt;strong class=&quot;ph uicontrol&quot; style=&quot;font-family: DSCDefaultFontBold;&quot;&gt;Save&lt;/strong&gt;&amp;nbsp;on a standard Account edit page.&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px; margin-bottom: 10px; word-wrap: break-word;&quot;&gt;
A standard controller exists for every Salesforce object that can be queried using the Force.com API.&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Custom controller:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px; margin-bottom: 10px; word-wrap: break-word;&quot;&gt;
A&amp;nbsp;&lt;dfn class=&quot;term&quot;&gt;custom controller&lt;/dfn&gt;&amp;nbsp;is an Apex class that implements all of the logic for a page without leveraging a standard controller. Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px; word-wrap: break-word;&quot;&gt;
&lt;ol style=&quot;border: 0px; color: #242729; font-family: &amp;quot;PT Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Override existing functionality&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Make new actions available to the page&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Customize the navigation&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Use HTTP callouts or web services&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Have greater control of how information is accessed on the page&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;A&amp;nbsp;&lt;/span&gt;&lt;dfn class=&quot;term&quot; style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px;&quot;&gt;controller extension&lt;/dfn&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&amp;nbsp;is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when:&lt;/span&gt;&lt;br /&gt;
&lt;ul class=&quot;ul bulletList&quot; style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px; list-style-image: initial; list-style-position: initial; margin: 0px 0px 23px 25px; padding: 0px;&quot;&gt;
&lt;li class=&quot;li&quot; style=&quot;float: none; line-height: 23px;&quot;&gt;You want to leverage the built-in functionality of a standard controller but override one or more actions, such as edit, view, save, or delete.&lt;/li&gt;
&lt;li class=&quot;li&quot; style=&quot;float: none; line-height: 23px;&quot;&gt;You want to add new actions.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px;&quot;&gt;
&lt;b&gt;11.&amp;nbsp;What is the difference between workflow and process builder ?&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: DSCDefaultFontRegular; font-size: 15px;&quot;&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #242729; font-family: &amp;quot;PT Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
You can use the&amp;nbsp;&lt;strong style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Process Builder&lt;/strong&gt;&amp;nbsp;to perform more actions than with workflow:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #242729; font-family: &amp;quot;PT Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Create a record&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Update any related record&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Use a quick action to create a record, update a record, or log a call&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Launch a flow&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Send an email&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Post to Chatter&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Submit for approval&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Call apex methods&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #242729; font-family: &amp;quot;PT Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
But the process builder doesn’t support outbound messages.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #242729; font-family: &amp;quot;PT Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;strong style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Workflow&lt;/strong&gt;&amp;nbsp;does only 4 actions&lt;/div&gt;
&lt;ul style=&quot;background-color: white; border: 0px; color: #242729; font-family: &amp;quot;PT Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Create Task&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Update Field&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Email Alert&lt;/li&gt;
&lt;li style=&quot;border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;&quot;&gt;Outbound Message&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;pt sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 15px;&quot;&gt;12. W&lt;/span&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;pt sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;hat is the outbound message ?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #242729; font-family: &amp;quot;pt sans&amp;quot; , &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Ans:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;Outbound messaging is part of the workflow rule functionality in Salesforce. Workflow rules watch for specific kinds of field changes and trigger automatic Salesforce actions, such as sending email alerts, creating task records, or sending an outbound message to external services. Outbound messages can contain database field values.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;Outbound messaging uses the&amp;nbsp;&lt;/span&gt;&lt;a class=&quot;xref&quot; href=&quot;https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_om_outboundmessaging_wsdl.htm#i1473596&quot; style=&quot;color: #048ec6; font-family: DSCDefaultFontRegular; font-size: 15px; text-decoration-line: none;&quot;&gt;&lt;samp class=&quot;codeph nolang&quot; style=&quot;border-radius: 3px; color: #0088cc; font-family: Monaco, Menlo, Consolas, &amp;quot;Courier New&amp;quot;, monospace; font-size: 13.5px;&quot;&gt;notifications()&lt;/samp&gt;&lt;/a&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&amp;nbsp;call to send SOAP messages over HTTP(S) to a designated endpoint when triggered by a workflow rule.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;After you set up outbound messaging, when a triggering event occurs, a message is sent to the specified endpoint URL. The message contains the fields specified when you created the outbound message. Once the endpoint URL receives the message, it can take the information from the message and process it.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;13.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Difference between SOAP and REST API ?&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;&lt;span style=&quot;font-size: 15px;&quot;&gt;Ans:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
SOAP : Simple Object Access Protocol&lt;br /&gt;
REST :  Representational State Transfer&lt;br /&gt;
* REST and SOAP are the two web service frameworks available on the Force.com platform. &lt;br /&gt;
* The SOAP API uses authentication with username and password, and communicates using XML messages. There are different API&#39;s to work with the Enterprise, Partner, Bulk, Metadata etc. &lt;br /&gt;
*The REST API uses HTTP to authenticate, it uses a token authentication and can use &lt;a href=&quot;http://wiki.developerforce.com/page/Digging_Deeper_into_OAuth_2.0_on_Force.com&quot;&gt;OATH &lt;/a&gt;to authenticate, it communicates using JSON messages. &lt;br /&gt;
*REST API is generally lighter weight than the SOAP API, works well with mobile applications&amp;nbsp;especially.&lt;br /&gt;
JSON is mostly preferred as it is light weight and therefore REST API&#39;s are most suited for mobile and web applications.&lt;br /&gt;
* SOAP works with WSDL and REST works with GET, POST, PUT, DELETE&lt;/div&gt;
* SOAP Handles large data load and fit for large enterprise applications and REST Handles less data and fit for mobile and web applications.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;b&gt;14.How can you expose REST API ?&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST&quot;&gt;https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_code_sample_basic.htm&quot;&gt;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_rest_code_sample_basic.htm&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;b&gt;&lt;a href=&quot;http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/&quot;&gt;http://www.wadewegner.com/2013/03/creating-anonymous-rest-apis-with-salesforce-com/&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;word-wrap: break-word;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
Six new annotations have been added that enable you to expose an Apex class as a RESTful Web service.&lt;br /&gt;
At Class level&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_rest_resource.htm&quot;&gt;@RestResource&lt;/a&gt;(urlMapping=&#39;/yourUrl&#39;)&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &lt;br /&gt;
At Method Level&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_delete.htm&quot;&gt;@HttpDelete&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_get.htm&quot;&gt;@HttpGet&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_patch.htm&quot;&gt;@HttpPatch&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_post.htm&quot;&gt;@HttpPost&lt;/a&gt;&amp;nbsp; &amp;nbsp; - Create Only&lt;br /&gt;
&lt;a href=&quot;https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_annotation_http_put.htm&quot;&gt;@HttpPut&lt;/a&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;- Create or Update&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;15. Order of Execution?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
1. Old record loaded from database (or initialized for new inserts)&lt;br /&gt;
2. New record values overwrite old values&lt;br /&gt;
3. System Validation Rules (If inserting Opportunity Products, Custom Validation Rules will also fire in addition to System Validation Rules)&lt;br /&gt;
4. All Apex before triggers (EE / UE only)&lt;br /&gt;
5. Custom Validation Rules&lt;br /&gt;
6. Record saved to database (but not committed)&lt;br /&gt;
7. Record reloaded from database&lt;br /&gt;
8. All Apex after triggers (EE / UE only)&lt;br /&gt;
9. Assignment rules&lt;br /&gt;
10. Auto-response rules&lt;br /&gt;
11. Workflow rules&lt;br /&gt;
12. Processes&lt;br /&gt;
13. Escalation rules&lt;br /&gt;
14. Parent Rollup Summary Formula value updated (if present)&lt;br /&gt;
15. Database commit&lt;br /&gt;
16. Post-commit logic (sending email)&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;16.&amp;nbsp;Difference between database.query &amp;nbsp;and database.QueryLocator ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;database.query&lt;/b&gt; allows you to make a dynamic SOQL query at runtime. You can build up a string and then use that as a query string at run time in the database.query.&lt;br /&gt;
it supports 50,000 records only.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;database.getQueryLocator&lt;/b&gt; returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in batch apex.&lt;br /&gt;
it supports upto 50 million records.&lt;br /&gt;
If VF page have read only attribute, use Database.getQueryLocator().&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;17. What is Synchronous and Asynchronous ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Synchronous:&lt;/b&gt;&lt;br /&gt;
In a Synchronous call, the thread will wait until it completes its tasks before proceeding to next. In a Synchronous call, the code runs in single thread.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Trigger&lt;br /&gt;
Controller Extension&lt;br /&gt;
Custom Controller&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Asynchronous:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
In a Asynchronous call, the thread will not wait until it completes its tasks before proceeding to next. Instead it proceeds to next leaving it run in separate thread. In a Asynchronous call, the code runs in multiple threads which helps to do many tasks as background jobs.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;Example:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Batch&lt;br /&gt;
@future Annotation&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;18.&amp;nbsp;What is the difference between trigger.new and trigger.old?.When do use ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;Trigger.new&lt;/b&gt; Returns a list of new version of sObject records.&lt;br /&gt;
&lt;b&gt;Trigger.Old&lt;/b&gt; Returns a list of old version of sObject records.&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;trigger.new &lt;/b&gt;used in Insert and Update.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;trigger.old &lt;/b&gt;used in Update and Delete.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
No&amp;nbsp;&lt;b&gt;trigger.new &lt;/b&gt;in Delete.&lt;/div&gt;
&lt;div&gt;
No&amp;nbsp;&lt;b&gt;trigger.old &lt;/b&gt;in Insert.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
– Trigger.Old is always readOnly&lt;br /&gt;
– We cannot delete trigger.new&lt;br /&gt;
– In before triggers, trigger.new can be used to update the fields on the same object.&lt;br /&gt;
– In After trigger, we get run time exception is thrown when user try to modify the fields in the same object.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;19. How to restrict the trigger to Recursion?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Trigger:&lt;/b&gt;&lt;/div&gt;
trigger updateTrigger on anyObject(after update) {&lt;br /&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; if(checkRecursive.runOnce())     {&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; //write your code here&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Class:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
public Class checkRecursive{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; private static boolean run = true;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public static boolean runOnce(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if(run){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run=false;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return true;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}else{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return run;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;20.&amp;nbsp;How many methods are available in batch apex?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
The &lt;b&gt;Database.Batchable&lt;/b&gt; interface contains three methods that must be implemented.&lt;br /&gt;
&lt;b&gt;Start method:&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
global (Database.QueryLocator | Iterable&amp;lt;sObject&amp;gt;) start(Database.BatchableContext ***bc***) {}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;execute method:&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
global void execute(Database.BatchableContext ***BC***, list&amp;lt;P&amp;gt;){}&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;finish method:&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
global void finish(Database.BatchableContext ***BC***){}&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;21.&amp;nbsp;Salesforce Governor limits.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;Total number of SOQL queries - 100&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;Total number of DMLs &amp;nbsp;- 150&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;Total number of records retrieved by SOQL - 50000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;Total number of callouts &amp;nbsp;- 100&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;Maximum number of batch Apex jobs in the Apex flex queue - 100&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;Maximum number of batch Apex jobs queued or active - 5&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: small;&quot;&gt;&lt;b&gt;22. What is call-out and when we can use them?&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;dscdefaultfontregular&amp;quot;;&quot;&gt;&lt;span style=&quot;color: black; font-family: &amp;quot;times new roman&amp;quot;; font-size: small;&quot;&gt;&lt;b&gt;Ans:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Apex Callouts enable Apex to invoke external web services.&lt;br /&gt;
&lt;br /&gt;
Each callout request is associated with an HTTP method and an endpoint. The HTTP method indicates what type of action is desired.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;GET &lt;/b&gt;Retrieve data identified by a URL.&lt;br /&gt;
&lt;b&gt;POST &lt;/b&gt;Create a resource or post data to the server.&lt;br /&gt;
&lt;b&gt;DELETE &lt;/b&gt;Delete a resource identified by a URL.&lt;br /&gt;
&lt;b&gt;PUT &lt;/b&gt;Create or replace the resource sent in the request body.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
GET the data from server&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Http http = new Http();&lt;/div&gt;
&lt;div&gt;
HttpRequest request = new HttpRequest();&lt;/div&gt;
&lt;div&gt;
request.setEndpoint(&#39;https://th-apex-http-callout.herokuapp.com/animals&#39;);&lt;/div&gt;
&lt;div&gt;
request.setMethod(&#39;GET&#39;);&lt;/div&gt;
&lt;div&gt;
HttpResponse response = http.send(request);&lt;/div&gt;
&lt;div&gt;
// If the request is successful, parse the JSON response.&lt;/div&gt;
&lt;div&gt;
if (response.getStatusCode() == 200) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; // Deserialize the JSON string into collections of primitive data types.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; Map&amp;lt;String, Object&amp;gt; results = (Map&amp;lt;String, Object&amp;gt;) JSON.deserializeUntyped(response.getBody());&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; // Cast the values in the &#39;animals&#39; key as a list&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; List&amp;lt;Object&amp;gt; animals = (List&amp;lt;Object&amp;gt;) results.get(&#39;animals&#39;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; System.debug(&#39;Received the following animals:&#39;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; for (Object animal: animals) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.debug(animal);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;23. What is FUTURE method ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;A future method runs in the background, asynchronously. You can call a future method for executing long-running operations, such as callouts to external Web services or any operation you’d like to run in its own thread, on its own time. You can also make use of future methods to isolate DML operations on different sObject types to prevent the mixed DML error.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;dscdefaultfontregular&amp;quot;; font-size: 15px;&quot;&gt;24.&amp;nbsp;&lt;/span&gt;Difference between Public and Global in Salesforce?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;b&gt;public&lt;/b&gt;&lt;br /&gt;
&lt;div&gt;
This means the method or variable can be used by any Apex in this application or namespace.&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;global&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
This means the method or variable can be used by any Apex code that has access to the class, not just the Apex code in the same application. This access modifier should be used for any method that needs to be referenced outside of the application, either in the SOAP API or by other Apex code. If you declare a method or variable as global, you must also declare the class that contains it as global.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;25. Have you used Offset in SOQL?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
The SOQL query normally returned 100 rows, you could use OFFSET 20 in your query to skip the first 20 rows and returns 21th row to 120th rows.&lt;br /&gt;
&lt;br /&gt;
SELECT Name FROM Account 
WHERE Industry = &#39;Media&#39; 
ORDER BY Name 
LIMIT 100 
OFFSET 20&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
For example if there are 20 records then, if we specify offset as 10 in the query then it would return record 11 through 20.&lt;br /&gt;
&lt;br /&gt;
OFFSET keyword can be used to implement pagination in visaulforce page tables.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;26. Wrapper Class ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
A wrapper or container class is a class, a data structure, or an abstract data type which contains different objects or collection of objects as its members&lt;br /&gt;
&lt;div&gt;
In the Visualforce most important use case is to display a table of records with a check box and then process only the records that are selected.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;27. What is External ID ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;External ID&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
Set the field as the unique record identifier from an external system.&lt;br /&gt;
&lt;div&gt;
You can have multiple records with the same external ID.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;b&gt;Unique ID field&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This is a setting for the field that will prevent you from using the same value in multiple records for the unique field.&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;28. Exceptions in Apex ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
SObjectException&lt;br /&gt;
CalloutException&lt;br /&gt;
DmlException&lt;br /&gt;
EmailException&lt;br /&gt;
LimitException&lt;br /&gt;
JSONException&lt;br /&gt;
ListException&lt;br /&gt;
NullPointerException&lt;br /&gt;
QueryException&lt;br /&gt;
StringException&lt;br /&gt;
TypeException&lt;br /&gt;
VisualforceException&lt;br /&gt;
RequiredFeatureMissing&lt;br /&gt;
NoSuchElementException&lt;br /&gt;
MathException&lt;br /&gt;
InvalidParameterValueException&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;b&gt;29. SOQL query to get the deleted Rows also ?&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;br /&gt;
List&amp;lt;account&amp;gt; accs = [SELECT ID FROM account &lt;b&gt;ALL ROWS&lt;/b&gt;];&lt;br /&gt;
System.debug(accs.size());&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;30. Delegate Administrative ?&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;Ans:&lt;/b&gt;&lt;/div&gt;
Use delegated administration to assign limited admin privileges to users in your org who aren’t administrators. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;ICANN project Short
Description:&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
ICANN (&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;Internet Corporation for Assigned Names and Numbers)
is US based a non-profit organization responsible for providing Domain name to
the Requested Users.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;Previously ICANN is using a Drupal system for managing
the Requests raised for domain, We migrated that entire system to the
Salesforce.Now when an end user requested for a domain from drupal system a
Request will be created in Salesforce Org under Request object.Every Request is
Related to a Domain(TLD Object in salesforce),Every TLD object is related to a Registry(Account
object in salesforce),everyregistry will have Contact(Registry manager).there
is a junction object which will relate many Registries to many registry
managers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;Once an end user request for a domain an email will be
sent to the Registry manager with request details including request Url in
Community and end user details using Trigger.Registry manager can click on the
link in the mail it will take them to Community there they will be able to see
the all the requests and they can Accept those Requests or Decline those
requests.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;sans-serif&amp;quot;; font-size: 10.0pt; line-height: 115%;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;// prime numbers printing code&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;for(integer i=1;i&amp;lt;=90;i++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;integer count =0;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; for(integer j=1;j&amp;lt;=i;j++){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(math.mod(i,j)==0)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count++;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp;// system.debug(count);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; if(count==2){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; system.debug(i);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;// num is prime or not checking&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;integer count =0;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;for(integer j=1;j&amp;lt;=2;j++){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; if(math.mod(2,j)==0)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; count++;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;if(count==2){&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; system.debug(&#39;yes prime number&#39;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;else{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; system.debug(&#39;no not a prime number&#39;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;b&gt;// displaying numbers from 100 to 1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;for(integer i=0;i&amp;lt;100;i++)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;{&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; integer j=100-i;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&amp;nbsp; &amp;nbsp; system.debug(j);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; line-height: 115%;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 13.3333px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif; font-size: large;&quot;&gt;&lt;b&gt;SDLC :&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;1.Planning&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;2..Designing&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;3. Building&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;4. Testing&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;5. Deploying&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/6801197440232665231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/05/salesforce-interview-questions-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6801197440232665231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6801197440232665231'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/05/salesforce-interview-questions-and.html' title='Salesforce Interview Questions and Answers'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-2361285755930917898</id><published>2018-01-02T19:20:00.000+05:30</published><updated>2018-01-02T19:20:00.202+05:30</updated><title type='text'>Restricting User to Double Click on Button in VF</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;This post is regarding to avoid one small issue I have come across it.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Let say there is a visual force page where input fields and one button is present. When that button is clicked records are inserted in to the object. If button is clicked twice in same time(double click) then records(duplicate records ) are being created twice.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;How will we avoid that?&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;How will restrict user to do double click on button?&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Here I am sharing some snippet of code.Hope It will help you.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Page:&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h3&gt;
&amp;lt;apex:page standardController=&quot;Account&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageMessages id=&quot;messages&quot;&amp;gt;&amp;lt;/apex:pageMessages&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock title=&quot;Avoid Doublle Click&quot; &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockButtons location=&quot;both&quot;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:actionStatus id=&quot;saveStatus&quot;&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:facet name=&quot;stop&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputPanel &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton action=&quot;{!save}&quot; value=&quot;save&quot; reRender=&quot;messages&quot; status=&quot;saveStatus&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton action=&quot;{!Cancel}&quot; value=&quot;Cancel&quot; immediate=&quot;true&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputPanel&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:facet&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:facet name=&quot;start&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputPanel &amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Saving...&quot; disabled=&quot;true&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Saving...&quot; disabled=&quot;true&quot; /&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputPanel&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:facet&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:actionStatus&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockButtons&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSection title=&quot;Account Creating&quot;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!Account.Name}&quot;/&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/apex:form&amp;gt;&amp;nbsp; &amp;nbsp;&lt;br /&gt;
&amp;lt;/apex:page&amp;gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/2361285755930917898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/restricting-user-to-double-click-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/2361285755930917898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/2361285755930917898'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/restricting-user-to-double-click-on.html' title='Restricting User to Double Click on Button in VF'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-8893232279252731600</id><published>2018-01-02T19:12:00.002+05:30</published><updated>2018-01-02T19:15:40.225+05:30</updated><title type='text'>Preventing Right Click,Copy,Paste in VF Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Everybody must have visited bank site there we can not do right click or copy Account number and paste in another field Retype Account Number. That means we should not give any chance to anybody to see page source. We do this for more security purpose.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;That made me to think and try to design same in&amp;nbsp;visual-force&amp;nbsp;page. Here I have&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;only&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;used JavaScript&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp;for this functionality.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;There are some snippet of code.Hopefully It will help you.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Functionality&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Preventing to see the Page Source.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;Preventing paste Email field value in Re Email field.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Here is the page:-&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;&amp;lt;apex:page StandardController=&quot;Contact&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;trebuchet ms&amp;quot; , sans-serif;&quot;&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;script&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; function DisableRightClick(event){ &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (event.button==2)&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Right Click is not Allowed&quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;function DisableCtrlKey(e){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var code = (document.all) ? event.keyCode:e.which;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (parseInt(code)==17){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Please re-type your email address&quot;); &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock title=&quot;Create Contact&quot; onmousedown=&quot;DisableRightClick(event)&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockButtons &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Save&quot; action=&quot;{!save}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockButtons&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSection columns=&quot;1&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!Contact.Firstname}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!Contact.LastName}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!Contact.Email}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputtext value=&quot;{!Contact.Email}&quot; label=&quot;Re-Type Email Id&quot; &amp;nbsp;onKeyDown=&quot;DisableCtrlKey(event)&quot;/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!Contact.Phone}&quot;/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/apex:page&amp;gt;&lt;/div&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/8893232279252731600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/preventing-copypaste-and-right-click-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8893232279252731600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8893232279252731600'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/preventing-copypaste-and-right-click-in.html' title='Preventing Right Click,Copy,Paste in VF Page'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-460136858086964640</id><published>2018-01-02T19:08:00.000+05:30</published><updated>2018-01-02T19:08:14.532+05:30</updated><title type='text'>Visualforce Page Exactly Same as Contact Edit Page</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;The question was there will be a link called &quot;Copy Mailing Address to Other Address&quot; when clicked that link all&amp;nbsp;Mailing&amp;nbsp;address will be copied to other address same as standard edit page of contact.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;This can be done two ways.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;By using java script&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;By using Controller extension&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;In the command link we have to call java script method there we will get all the field value of mailing addresss using documnet.getElementByid() method in javascript and will assign to the other address field.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Second approach is we will call extension method where will assign all the mailing address field to other address field and will&amp;nbsp;reRender (refresh) the block. It will behave exactly like as standard edit page layout of Contact functionality.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Now the challenge is how will we display that command link inside that pagablock section header.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;This is the page and controller&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;apex:page standardController=&quot;Contact&quot; extensions=&quot;contactEditPageExtension&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;apex:sectionHeader title=&quot;Contact Edit&quot; subtitle=&quot;New Contact&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;apex:outputText value=&quot;Contacts not associated with accounts are private and cannot be viewed by other users or included in reports.&quot;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputText&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock title=&quot;Contact Edit&quot; id=&quot;test&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockButtons location=&quot;both&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Save&quot; action=&quot;{!Save}&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Save &amp;amp; New&quot; /&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Cancel&quot; action=&quot;{!Cancel}&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockButtons&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSection title=&quot;Contact Information&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.FirstName}&quot;/&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.LastName}&quot;/&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSection title=&quot;Test&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:facet name=&quot;header&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSectionItem &amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputText value=&quot;Address Information&quot; style=&quot;float:left;&quot;&amp;gt;&amp;lt;/apex:outputText&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandLink value=&quot;Copy Malling Address to Other Address&quot; style=&quot;float:right;&quot; action=&quot;{!test}&quot; reRender=&quot;test&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSectionItem&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:facet&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.MailingCountry}&quot;/&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.otherCountry}&quot;/&amp;gt; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.MailingStreet}&quot;/&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.otherStreet}&quot;/&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.MailingState}&quot;/&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!contact.otherState}&quot;/&amp;gt; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;h3 style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;My controller&amp;nbsp;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;public with sharing class contactEditPageExtension {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public Contact contact{get;set;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public contactEditPageExtension(ApexPages.StandardController controller) {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //this.contact = (Contact )controller.getRecord();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contact = new Contact();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public void test(){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contact.otherCountry &amp;nbsp;= &amp;nbsp;contact.MailingCountry;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contact.otherState &amp;nbsp;= &amp;nbsp; contact.MailingState;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contact.otherStreet &amp;nbsp;= &amp;nbsp; contact.MailingStreet;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //return null;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz2jhDrh1RzPAwxHREVMMK3rxgBNi-rffeFw6Wp4sU1pklgscn1phsl7zBNhnvEb3PJZ9dPLNib12Kl3cpe6-rxr7PRB8VZVnAPP3NGny_PbkLTFF1i4Ra4Wj0bf5MGa9Hr-TgtaVCsOY/s1600/contact+Edit+page.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #015782; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz2jhDrh1RzPAwxHREVMMK3rxgBNi-rffeFw6Wp4sU1pklgscn1phsl7zBNhnvEb3PJZ9dPLNib12Kl3cpe6-rxr7PRB8VZVnAPP3NGny_PbkLTFF1i4Ra4Wj0bf5MGa9Hr-TgtaVCsOY/s1600/contact+Edit+page.png&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/460136858086964640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/visualforce-page-exactly-same-as.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/460136858086964640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/460136858086964640'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/visualforce-page-exactly-same-as.html' title='Visualforce Page Exactly Same as Contact Edit Page'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz2jhDrh1RzPAwxHREVMMK3rxgBNi-rffeFw6Wp4sU1pklgscn1phsl7zBNhnvEb3PJZ9dPLNib12Kl3cpe6-rxr7PRB8VZVnAPP3NGny_PbkLTFF1i4Ra4Wj0bf5MGa9Hr-TgtaVCsOY/s72-c/contact+Edit+page.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-8612216240688658486</id><published>2018-01-02T18:58:00.001+05:30</published><updated>2018-01-02T18:58:50.669+05:30</updated><title type='text'>Add/Remove Functionality in a VF page pageblock table for Creating Multiple Records For a Particular Object.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
I had come across a scenario where I was asked to develop some functionality where user can create list of records at a time(clicking on save button on one time) and can remove row.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
Here I have created a pageblock table and there I am displaying 5 rows to enter data and there column, Name , Phone and Action. In Action column Delete link is present.When that link(Delete) is clicked then particular row will be removed. Two button is there Add Row and Save.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
Add Row--&amp;gt; &amp;nbsp;When that button is clicked one more row will be created in the pagablock table&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
Save--&amp;gt; It will save the record.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
Here is the page&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;div&gt;
&amp;lt;apex:page controller=&quot;creatingListOfRecordsController&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock title=&quot;Creating List Of Account Records&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageMessages&amp;gt;&amp;lt;/apex:pageMessages&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockButtons location=&quot;top&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Add Row&quot; action=&quot;{!addRow}&quot; reRender=&quot;table&quot; immediate=&quot;true&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockButtons&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockTable value=&quot;{!accountwrapperList}&quot; var=&quot;page&quot; id=&quot;table&quot;&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headerValue=&quot;Name&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!page.account.name}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:column&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headerValue=&quot;Phone&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!page.account.Phone}&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:column&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headerValue=&quot;Action&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandLink value=&quot;Delete&quot; action=&quot;{!removingRow}&quot; immediate=&quot;true&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:param name=&quot;index&quot; value=&quot;{!page.counterWrap}&quot;/&amp;gt; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:commandLink&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:column&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockTable&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Save&quot; action=&quot;{!saving}&quot; /&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/apex:page&amp;gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
Here is the Controller&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;div&gt;
public with sharing class creatingListOfRecordsController {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public list&amp;lt;Account&amp;gt; accountList{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public list&amp;lt;Accountwrapper&amp;gt; accountwrapperList{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public Integer counter{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public creatingListOfRecordsController(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;counter = 0;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accountList = new list&amp;lt;Account&amp;gt;();&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accountwrapperList = new list&amp;lt;Accountwrapper&amp;gt;();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(Integer i=0;i&amp;lt;5;i++){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Accountwrapper actWrap = new Accountwrapper(new Account());&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;counter++;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;actWrap.counterWrap = counter;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accountwrapperList.add(actWrap);&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public PageReference addRow(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //accountList.add(new Account());&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Accountwrapper actWrap = new Accountwrapper(new Account());&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; counter++;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actWrap.counterWrap = counter;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accountwrapperList.add(actWrap);&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public PageReference removingRow(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Integer param = Integer.valueOf(Apexpages.currentpage().getParameters().get(&#39;index&#39;));&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(Integer i=0;i&amp;lt;accountwrapperList.size();i++){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(accountwrapperList[i].counterWrap == param ){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; accountwrapperList.remove(i); &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; counter--;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public PageReference saving(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list&amp;lt;Account&amp;gt; updateAccountList;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updateAccountList = new list&amp;lt;Account&amp;gt;();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!accountwrapperList.isEmpty()){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(Accountwrapper accountWrapper:accountwrapperList){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updateAccountList.add(accountWrapper.account);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!updateAccountList.isEmpty()){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; upsert updateAccountList;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ApexPages.Message myMsg = new ApexPages.Message(ApexPages.Severity.Info,&#39;Record Saved Successfully.&#39;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ApexPages.addMessage(myMsg);&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public class Accountwrapper{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Account account{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Integer counterWrap{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public Accountwrapper(Account act){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this.account = act; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
The out put will be exactly like this image&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;background-color: white; clear: both; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcDH4myrvK_DeaFFMhHgLI-gd8XJO0nBo6ExCqjS9OlZqEYj9Yjl1vMekSImU-qgIb-K8EuRBPzq6t-Bmhq7FSDbZuITCk5ArqqbHkXJtj88DifPTbKjM2vaQJdh4SueeqFoXTCxVrjbc/s1600/list.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #015782; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;86&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcDH4myrvK_DeaFFMhHgLI-gd8XJO0nBo6ExCqjS9OlZqEYj9Yjl1vMekSImU-qgIb-K8EuRBPzq6t-Bmhq7FSDbZuITCk5ArqqbHkXJtj88DifPTbKjM2vaQJdh4SueeqFoXTCxVrjbc/s1600/list.png&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/8612216240688658486/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/addremove-functionality-in-vf-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8612216240688658486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8612216240688658486'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/addremove-functionality-in-vf-page.html' title='Add/Remove Functionality in a VF page pageblock table for Creating Multiple Records For a Particular Object.'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcDH4myrvK_DeaFFMhHgLI-gd8XJO0nBo6ExCqjS9OlZqEYj9Yjl1vMekSImU-qgIb-K8EuRBPzq6t-Bmhq7FSDbZuITCk5ArqqbHkXJtj88DifPTbKjM2vaQJdh4SueeqFoXTCxVrjbc/s72-c/list.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-4111450193483071567</id><published>2018-01-02T18:34:00.000+05:30</published><updated>2018-01-02T18:34:16.479+05:30</updated><title type='text'>Encryption and Decryption In Salesforce.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;b style=&quot;font-size: 12px; line-height: 18.6667px;&quot;&gt;Encryption&lt;/b&gt;&lt;span style=&quot;font-size: 12px; line-height: 18.6667px;&quot;&gt;, is the process of changing information in such a way as to make it unreadable by anyone except those possessing special knowledge (usually referred to as a &quot;key&quot;) that allows them to change the information back to its original, readable form.&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 12px; line-height: 18.6667px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To encrypt some value we have to use some key value that can be hard coded or we can generate key also by using this&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Lucida, Verdana, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 18.6667px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;Blob cryptoKey = Crypto.generateAesKey(256);&lt;br /&gt;We have to use same key to decrypt that value.&lt;br /&gt;&lt;br /&gt;Here I am going to share some code.Hope it will help you. I have created one visualforce page and one controller. In the page only one field(Name) is there and two button(Save &amp;amp; Update).&lt;br /&gt;When some value is entered in the name field and clicked on save button that value will be stored in the object encrypted format.&lt;br /&gt;Now record id in the url and click on update button encrypted value will be converted in to original format.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
Here is my page&amp;nbsp;&amp;nbsp;&lt;/h4&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;apex:page standardController=&quot;Account&quot; extensions=&quot;EncryptionandDecryptionExtension&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSection &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputField value=&quot;{!encrypt.Name}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Save&quot; action=&quot;{!Save}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:commandButton value=&quot;Update&quot; action=&quot;{!test}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/apex:form&amp;gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/apex:page&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
Here is My Controller&amp;nbsp;&lt;/h4&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
public class EncryptionandDecryptionExtension {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public account encrypt{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; //Blob cryptoKey;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; Blob cryptoKey = Blob.valueOf(&#39;380db410e8b11fa9&#39;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public Id recordId{get;set;}&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public EncryptionandDecryptionExtension(ApexPages.StandardController controller) {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //cryptoKey = Crypto.generateAesKey(256);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; recordId = Apexpages.CurrentPage().getParameters().get(&#39;id&#39;);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(recordId !=null){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encrypt = [SELECT id,Name From account&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE id=:recordId];&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else{&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encrypt = new account();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public PageReference Save(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Blob data = Blob.valueOf(encrypt.Name);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Blob encryptedData = Crypto.encryptWithManagedIV(&#39;AES128&#39;, cryptoKey , data );&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String b64Data = EncodingUtil.base64Encode(encryptedData);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encrypt.name = b64Data ;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; insert encrypt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; public PageReference test(){&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Blob cryptoKey = Crypto.generateAesKey(256);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Blob data = Blob.valueOf(encrypt.Name);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Blob data = EncodingUtil.base64Decode(encrypt.Name);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Blob decryptedData = Crypto.decryptWithManagedIV(&#39;AES128&#39;, cryptoKey , data);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String dryptData = decryptedData.toString();&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.debug(&#39;Printing dryptData &#39;+dryptData);&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; encrypt.name = dryptData;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; update encrypt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; }&lt;/div&gt;
&lt;div&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/4111450193483071567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/encryption-and-decryption-in-salesforce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/4111450193483071567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/4111450193483071567'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/encryption-and-decryption-in-salesforce.html' title='Encryption and Decryption In Salesforce.'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-3148562133948750322</id><published>2018-01-02T15:59:00.000+05:30</published><updated>2018-01-02T15:59:00.315+05:30</updated><title type='text'>VF Using Action Global Variable Navigating to Standard Layout(Tab, Edit layout,List Layout)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Times, &amp;quot;Times New Roman&amp;quot;, serif; font-size: 13px;&quot;&gt;$Action is a global variable.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;A global merge field type to use when referencing standard&amp;nbsp;&lt;span class=&quot;ph&quot;&gt;&lt;span class=&quot;ph&quot;&gt;Salesforce&lt;/span&gt;&lt;/span&gt;&amp;nbsp;actions such as displaying the Accounts tab home page, creating new accounts, editing accounts, and deleting accounts.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;Here I am sharing some visualforce code for the same.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;apex:page standardController=&quot;Account&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;//Navigating to new record page of Account&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.New)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Creating New Account&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;b&gt;&amp;nbsp;//Navigating to Account list View&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.List, $ObjectType.Account)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Go to the Account List View&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;b&gt;&amp;nbsp;//Navigating to Account tab page&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.Tab, $ObjectType.Account)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Go to the Account tab&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;//Cloening Account Record&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.Clone, id)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cloning record&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;//id &amp;nbsp;means record id&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //Here we have to give accountid in url.&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;//Editing Account Record&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.Edit, id)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Editing record&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: blue; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;b&gt;&amp;nbsp;//Deleting Account Record&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.Delete, id)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Deleting Account Record&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp;&amp;nbsp;//submitting account record for approval&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:outputLink value=&quot;{!URLFOR($Action.Account.Submit for Approval, id)}&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Submitting Record for Approval&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/apex:outputLink&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/3148562133948750322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/vf-using-action-global-variable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3148562133948750322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3148562133948750322'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2018/01/vf-using-action-global-variable.html' title='VF Using Action Global Variable Navigating to Standard Layout(Tab, Edit layout,List Layout)'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-6836624558501993424</id><published>2017-12-26T20:48:00.000+05:30</published><updated>2017-12-26T20:48:01.802+05:30</updated><title type='text'>Getting Picklist Values of an object&#39;s field Dynamically using schema Class</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;This is very simple. I am sharing some code ,please go through this&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;Here is My Controller&amp;nbsp;&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;public class testclass {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public Job__c job{get;set;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public List&amp;lt;SelectOption&amp;gt; options{get;set;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public testclass(){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options = new List&amp;lt;SelectOption&amp;gt;();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Schema.DescribeFieldResult fieldResult = Job__c.Status__c.getDescribe();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;Schema.PicklistEntry&amp;gt; ple = fieldResult.getPicklistValues();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for( Schema.PicklistEntry f : ple){&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; options.add(new SelectOption(f.getLabel(), f.getValue()));&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;&lt;u&gt;My Page&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;div&gt;
&amp;lt;apex:page controller=&quot;testclass &quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;apex:form&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Order Status:&amp;lt;apex:selectList id=&quot;countries&quot; value=&quot;{!job.Status__c}&quot; size=&quot;1&quot; required=&quot;true&quot; &amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:selectOptions value=&quot;{!options}&quot;/&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:selectList&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;lt;/apex:form&amp;gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&amp;lt;/apex:page&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/6836624558501993424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/getting-picklist-values-of-objects.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6836624558501993424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6836624558501993424'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/getting-picklist-values-of-objects.html' title='Getting Picklist Values of an object&#39;s field Dynamically using schema Class'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-5097974072250138652</id><published>2017-12-26T20:44:00.003+05:30</published><updated>2017-12-26T20:44:55.697+05:30</updated><title type='text'>Creating Email template in Apex to send Custom object Data</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Sometimes we try to send some custom object information in mail. For sending mail&amp;nbsp;Sales-force&amp;nbsp;has&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;provided 4 types of email template. We can design the template as per our requirement. We can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;use simple text template and use merge field to send custom object information. But that template&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;will work perfectly only If we use in the workflow.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;If we send mail from apex code then that merge field value will not be displayed, except we can&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;display Lead ,Contact and User object information.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Instead using the&amp;nbsp;Sales-force&amp;nbsp;Email template, design an template in apex code (using some HTML&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;tags depending according to your design).&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Just make a query which information you want to send and then pass these value as parameter to a method.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Verdana, sans-serif;&quot;&gt;List&amp;lt;CustomObject__c&amp;gt; listofCustomObjects = [SELECT id, Name,.Expiration__c ,Account_Name__c &lt;br /&gt;                                                                         FROM CustomObject__c]&lt;br /&gt; for(CustomObject__c license:listofCustomObjects ) {&lt;br /&gt;            &lt;br /&gt;            Integer numberDaysDue = System.Today().daysBetween(license.Expiration__c);&lt;br /&gt;            String name = license.Account_Name__c;&lt;br /&gt;            if(numberDaysDue == 30){&lt;br /&gt;               &lt;br /&gt;                sendingmail(numberDaysDue ,name );&lt;br /&gt;            }  &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public void sendingmail( Integer noOfdays, String accountName){&lt;br /&gt;         &lt;br /&gt;         Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage() ;&lt;br /&gt;         String[] toAddresses = new String[] {&#39;jewell@test.com&#39;,&#39;neha.v@test.com&#39;,&#39;sexyRadha@test.com&#39;};&lt;br /&gt;         mail.setToAddresses(toAddresses) ;&lt;br /&gt;         mail.setSubject(&#39;LMO:&#39;+&#39;  &#39;+accountName+&#39;  &#39;+&#39;licency expiry in&#39;+&#39; &#39;+noOfdays+&#39; &#39;+&#39;days&#39;);&lt;br /&gt;        &lt;br /&gt;         String body = &#39;&amp;lt;html lang=&quot;ja&quot;&amp;gt;&amp;lt;body&amp;gt;&#39;+ &lt;br /&gt;                          &#39;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#39;+&#39;This email alert is to bring to your notice that the licence of the client :&#39;+&#39;  &#39;+&#39;&amp;lt;b&amp;gt;&#39;+accountName+&#39;&amp;lt;/b&amp;gt;&#39;+&#39;  &#39;+&#39;is going to expiry within&#39;+&#39;&amp;lt;b&amp;gt;&#39;+&#39; &#39;+noOfdays+&#39; &#39;+&#39;&amp;lt;/b&amp;gt;&#39;+&lt;br /&gt;                          &#39;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&#39;+&#39;From LMO Alert Service&#39;+&#39;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&#39;;&lt;br /&gt;         mail.setHtmlBody(body);&lt;br /&gt;         Messaging.sendEmail(new Messaging.SingleEmailMessage[] { mail });&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;      }&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/5097974072250138652/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/creating-email-template-in-apex-to-send.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/5097974072250138652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/5097974072250138652'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/creating-email-template-in-apex-to-send.html' title='Creating Email template in Apex to send Custom object Data'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-7714195123601857050</id><published>2017-12-26T20:37:00.000+05:30</published><updated>2017-12-26T20:37:08.866+05:30</updated><title type='text'>How to use Date Time Variable in Dynamic Query Salesforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;In some scenario you might have come across to fetch record with in some date time range.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Here I am sharing some code for this. Suppose I am querying records from Minutes Object. There is two field Start_Time and End_Time present &amp;nbsp;in Minutes Object.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;This is my page&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;apex:inputField value=&quot;{!minute.Start_Time__c}&quot; required=&quot;true&quot; label=&quot;From Date&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;lt;apex:inputField value=&quot;{!minuteObj.End_Time__c}&quot; required=&quot;true&quot; label=&quot;To Date&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;apex:commandButton action=&quot;{!convertValidMinutesToUsage}&quot; value=&quot;Process Minute&#39;s&quot;/&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;This is my controller&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;public with sharing class ControllerValidMinutesToUsage {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public Minute__c minute{get;set;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DateTime startDate;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;DateTime endDate;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;string query;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public ControllerValidMinutesToUsage(){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;minute = &amp;nbsp;new Minute__c();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;public void convertValidMinutesToUsage(){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String sStartdate;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String sEndDate;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;startDate = minute.Start_Time__c;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;sStartdate = startDate.format(&#39;yyyy-MM-dd\&#39;T\&#39;HH:mm:ss\&#39;Z\&#39;&#39;);&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;endDate = minuteObj.End_Time__c+1;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #660000;&quot;&gt;&lt;b&gt;sEndDate = endDate.format(&#39;yyyy-MM-dd\&#39;T\&#39;HH:mm:ss\&#39;Z\&#39;&#39;);&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query = &#39;SELECT&amp;nbsp;Start_Time__c&amp;nbsp;,End_Time__c, Is_Valid__c WHERE Is_Valid__c = false&#39;;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;query += &#39; AND Start_Time__c &amp;gt;=&#39;+sStartdate+&#39; &#39;+&#39;AND Start_Time__c &amp;lt;=&#39;+sEndDate&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;list&amp;lt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;Minute__c&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;gt; = &amp;nbsp;DateBase.query(&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;query&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;);&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/7714195123601857050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/how-to-use-date-time-variable-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/7714195123601857050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/7714195123601857050'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/how-to-use-date-time-variable-in.html' title='How to use Date Time Variable in Dynamic Query Salesforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-6251456204428910025</id><published>2017-12-26T20:29:00.002+05:30</published><updated>2017-12-26T20:29:44.401+05:30</updated><title type='text'>NOT IN Keyword in Soql in Salesforce.( Fetching all accounts record which don&#39;t have any contacts )</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;Suppose there is a requirement to fetch all accounts record which don&#39;t have any contacts,&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;how will we do it?&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;We can fetch account with their corresponding contact record in a in line query.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;for example&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;list&amp;lt;Account&amp;gt; listOfAccounts = [SELECT id, Name,&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(SELECT id,name FROM Contacts)&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM Accounts];&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;list&amp;lt;Account&amp;gt; accountListwithoutContact = new list&amp;lt;Account&amp;gt;();&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;for(Account act :listOfAccounts&amp;nbsp;){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if(act .Contacts !=null &amp;amp;&amp;amp; act .Contacts.size() !=0){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;accountListwithoutContact.add(act) &amp;nbsp; ;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;accountListwithoutContact list will contain all account which dont have any contacts.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;Second approach would be&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;using NOT IN keyword.&lt;/b&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;list&amp;lt;Account&amp;gt; listOfAccounts = [SELECT id, Name&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM Account&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE id&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;NOT IN&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;(SELECT AccountId FROM Contact)];&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;Now this is the final list which contains all accounts which don&#39;t have any contact.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/6251456204428910025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/not-in-keyword-in-soql-in-salesforce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6251456204428910025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/6251456204428910025'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/not-in-keyword-in-soql-in-salesforce.html' title='NOT IN Keyword in Soql in Salesforce.( Fetching all accounts record which don&#39;t have any contacts )'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-8140699668056956479</id><published>2017-12-26T20:22:00.002+05:30</published><updated>2017-12-26T20:22:45.618+05:30</updated><title type='text'>Fetching Unique Record in Salesforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: courier new, courier;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13.3333px;&quot;&gt;lIST&amp;lt;AggregateResult&amp;gt; listofAccountsAggregateResult = [SELECT Name FROM Account GROUP BY Name];&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
It will return unique record of Accounts&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/8140699668056956479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/fetching-unique-record-in-salesforce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8140699668056956479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/8140699668056956479'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/fetching-unique-record-in-salesforce.html' title='Fetching Unique Record in Salesforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-1044339535165814895</id><published>2017-12-26T19:35:00.003+05:30</published><updated>2017-12-26T19:35:55.079+05:30</updated><title type='text'>Visualforce Adding CheckBox as header to Select all the records in Pageblock Table</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;I have faced some requirement in my development work . User must be able to select all the record in the page block table in one click . So I added header check-box &amp;nbsp;in page block table .&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Here is the code how I achieved this. Only Java Script code I have used .&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Page&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;lt;apex:page controller=&quot;ControllerforheaderCheckboxinPBT&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function checkAll(cb){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var inputElem = document.getElementsByTagName(&quot;input&quot;);&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(var i=0; i&amp;lt;inputElem.length; i++){&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(inputElem[i].id.indexOf(&quot;checkedone&quot;)!=-1)&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inputElem[i].checked = cb.checked;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;apex:pageMessages /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;lt;apex:pageBlock Title=&quot;ALL CONTACTS&quot; &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;&amp;lt;apex:commandButton value=&quot;mass delete&quot; action=&quot;{!massdelete}&quot; &amp;nbsp;id=&quot;massdelete&quot; onclick=&quot;return confirmDelete()&quot;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockTable value=&quot;{!Contacts}&quot; width=&quot;100%&quot; var=&quot;c&quot; cellpadding=&quot;2&quot; border=&quot;1&quot; &amp;nbsp;rowClasses=&quot;odd,even&quot; styleClass=&quot;tableClass&quot; id=&quot;opp_table&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column &amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;lt;apex:facet name=&quot;header&quot;&amp;gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputCheckbox &amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:actionSupport event=&quot;onclick&quot; action=&quot;{!GetSelected}&quot; onsubmit=&quot;checkAll(this)&quot; rerender=&quot;opp_table&quot; status=&quot;newStatus&quot;/&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/apex:inputCheckbox&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/apex:facet&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:inputCheckbox value=&quot;{!c.selected}&quot; id=&quot;checkedone&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:actionSupport event=&quot;onclick&quot; action=&quot;{!GetSelected}&quot; rerender=&quot;opp_table&quot;/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:inputCheckbox&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:column&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headervalue=&quot;AccountName&quot; styleClass=&quot;showline&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputField value=&quot;{!c.con.AccountId}&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:column&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockTable&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;My Controller..&lt;/span&gt;&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;public with sharing class ControllerforheaderCheckboxinPBT {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public Contact contact{get;set;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public Id contactId{get;set;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;ContactWrapper&amp;gt; contactList = new List&amp;lt;ContactWrapper&amp;gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;List&amp;lt;Contact&amp;gt; selectedContacts = new List&amp;lt;Contact&amp;gt;();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public ControllerforheaderCheckboxinPBT() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Contact contact = new Contact();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;} &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; public &amp;nbsp;List&amp;lt;ContactWrapper&amp;gt; getContacts() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(Contact c: [SELECT Id,Name,Accountid,loginURL__c,Account.Name,MobilePhone,Email FROM Contact ORDER BY createdDate DESC]){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contactList.add(new ContactWrapper(c));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return contactList;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public PageReference getSelected() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.debug(&#39;======Inside the Get Function======&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;selectedContacts.clear();&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//adding contacts in list&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for(ContactWrapper conWrapper: contactList) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(conWrapper.selected == true) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; conWrapper.isChanged = true;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; selectedContacts.add(conWrapper.con); &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return null;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; public PageReference massDelete() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //deleting that list&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;if(selectedContacts.size()&amp;gt;0){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&amp;nbsp;delete selectedContacts;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;//showing an message to select one contact&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;else{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&amp;nbsp;ApexPages.addMessage(new ApexPages.message(ApexPages.severity.ERROR,&#39;Please select at least one Contact.&#39;));&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&amp;nbsp;&amp;nbsp;return null;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;PageReference headerCheckboxPage = new PageReference(&#39;/apex/headerCheckboxinPBT&#39;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;headerCheckboxPage .setRedirect(true);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&amp;nbsp;&amp;nbsp;return headerCheckboxPage ;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;public class ContactWrapper {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Contact con{get; set;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public Boolean selected{get; set;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public ContactWrapper(Contact c) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; con = c;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; selected = false;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/1044339535165814895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/visualforce-adding-checkbox-as-header.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/1044339535165814895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/1044339535165814895'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/visualforce-adding-checkbox-as-header.html' title='Visualforce Adding CheckBox as header to Select all the records in Pageblock Table'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-3439467379371426159</id><published>2017-12-26T19:32:00.001+05:30</published><updated>2017-12-26T19:32:35.436+05:30</updated><title type='text'>Salesforce Adding Custom Clone Button In Account</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;This is a very simple post. We all have seen clone button is present in Standard and Custom Object record except Account. User may expect clone button in Account object also. For them I have done little work around.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; font-size: 13px;&quot;&gt;When we will create custom button we will find three content source.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br /&gt;
&lt;ul style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;URL&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;OnCick JavaScript&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Visulforce page&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;By using all there we can do clone functionality. But the best choice will be my favorite URL.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h4 style=&quot;background-color: white; color: #29aae1; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 18px; font-stretch: normal; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: normal; margin: 0px; position: relative;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Process&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/h4&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Go to Customize, &amp;nbsp;Account ,Buttons, Links, and Actions&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Click on New Button or Link&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Enter Label as Clone&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Choose Display Type as Detail Page Button&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Choose Behavior as Display in existing window without header and side bar.&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Content Source as URL&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Enter this URL--https://ap1.salesforce.com/{!Account.id}/e?clone=1&amp;amp;retURL=%2F{!Account.Id}&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Click on Save&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Now add Clone button in layout.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Let&#39;s disccuss something about this URL&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;https://ap1.salesforce.com&lt;/b&gt;&lt;/span&gt;/{!Account.id}/e?clone=1&amp;amp;retURL=%2F{!Account.Id}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;Red color text represent your instance name-&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;e- Edit mode-Record will open in edit mode&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/3439467379371426159/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/salesforce-adding-custom-clone-button.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3439467379371426159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/3439467379371426159'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/salesforce-adding-custom-clone-button.html' title='Salesforce Adding Custom Clone Button In Account'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-600152126103303069</id><published>2017-12-26T19:29:00.002+05:30</published><updated>2017-12-26T19:29:23.923+05:30</updated><title type='text'>Visualforce Displaying Image in Pdf</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;I have come across a scenario image is not appearing in pdf &amp;nbsp;sometimes.For this I have shared some tricks.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;It is very easy to display an image in Visulaforce page.&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;b style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;Process&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Crate a static resource and store that image&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Click in&amp;nbsp;&lt;u&gt;View file&lt;/u&gt;&amp;nbsp;link&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Copy the url&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;Add apex:image tag in vf page.&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;background-color: white; color: #3d85c6; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;b&gt;&amp;lt;apex:image url = &quot;https://ap1.salesforce.com/resource/logo&quot; &amp;nbsp;width=&quot;180&quot; height=&quot;60&quot; /&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
Image will be displayed. When you render that page as pdf then sometimes image will not be appear.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
To appear image every time, I have done some work around and I would love to share it.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
Lets talk about the image url --- &quot;https://ap1.salesforce.com/resource/&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;1380178695000&lt;/b&gt;&lt;/span&gt;/logo&quot;.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
All must be familiar with each term except this 1380178695000. What is that value?&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
This is nothing but the lastmodifiedtime of static resource.&lt;b style=&quot;color: #cc0000;&quot;&gt;1380178695000&amp;nbsp;&lt;/b&gt;must be dynamic. To get dynamic value I have used some function&amp;nbsp;&lt;b&gt;SystemModStamp.&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;Here is my page and Controller.&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;apex:page controller=&quot;ImageController&quot; renderAs=&quot;pdf&quot; &amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;lt;table&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;tr&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;td&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;div&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:image value=&quot;{!sLogo}&quot; &amp;nbsp;width=&quot;180&quot; height=&quot;60&quot; /&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;!--&amp;lt;apex:image url=&quot;https://ap1.salesforce.com/resource/logo&quot; width=&quot;180&quot; height=&quot;60&quot; /&amp;gt;--&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/div&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/td&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/tr&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/table&amp;gt;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
&lt;b&gt;Controller is&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;public with sharing class ImageController {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public String sLogo {get;set;}&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; public ImageController(){&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list&amp;lt;StaticResource&amp;gt; listOfStaticResources = [SELECT Id,SystemModStamp&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM StaticResource&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE Name = &#39;logo&#39;];&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(!listOfStaticResources.isEmpty()) {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sLogo = &#39;/resource/&#39;+listOfStaticResources[0].SystemModStamp.getTime()+&#39;/logo&#39;;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.debug(&#39;Printing after slogo&#39;+sLogo );&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //sLogo = (invoiceit_s__Configuration__c.getValues(&#39;COMPANY_LOGO&#39;).invoiceit_s__String_Value__c);&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px;&quot;&gt;
Now image will appear in pdf all time.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/600152126103303069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/visualforce-displaying-image-in-pdf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/600152126103303069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/600152126103303069'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/visualforce-displaying-image-in-pdf.html' title='Visualforce Displaying Image in Pdf'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1045371189442129818.post-2616538131186498261</id><published>2017-12-26T19:22:00.002+05:30</published><updated>2017-12-26T19:22:42.330+05:30</updated><title type='text'>VisualForce Charting in Salesforce</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span class=&quot;ph&quot;&gt;&lt;span class=&quot;ph&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;As salesforce has given us the functionality of report and dashboard to create chart then what is the use of visualforce charting?.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;In some situations existing functionality of salesforce can not meet our requirement properly . Suppose there is a requirement to compose custom pages that combine charts and data tables in ways that are more useful to our organization.In that case visual force charting is useful.There are also other way to meet this requirement. We can use Google chart Api for this.In my previous post I have explained.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span class=&quot;ph&quot; id=&quot;pages_charting_intro2&quot; style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;ph&quot;&gt;Visualforce&lt;/span&gt;&amp;nbsp;charting gives you an easy way to create customized business charts, based on data sets you create directly from SOQL queries, or by building the data set in your own&amp;nbsp;&lt;span class=&quot;ph&quot;&gt;Apex&lt;/span&gt;code. By combining and configuring individual data series, you can compose charts that display your data in ways meaningful to your organization.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;ph&quot;&gt;Visualforce&lt;/span&gt;&amp;nbsp;charts are rendered client-side using JavaScript. This allows charts to be animated and visually exciting, and chart data can load and reload asynchronously, which can make the page feel more responsive.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;This is the my page and controller.&lt;/u&gt;&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;lt;apex:page controller=&quot;OppsControllernew&quot; tabStyle=&quot;Account&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;apex:form &amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlock &amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:pageBlockSection title=&quot;Chart With Table&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:outputPanel style=&quot;float:left;&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:chart data=&quot;{!Opportunities}&quot; width=&quot;500&quot; height=&quot;250&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:axis type=&quot;Numeric&quot; position=&quot;left&quot; fields=&quot;Amount&quot; title=&quot;Amount&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:axis type=&quot;Category&quot; position=&quot;bottom&quot; fields=&quot;Name&quot; title=&quot;Name&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:barSeries orientation=&quot;horizontal&quot; axis=&quot;left&quot; xField=&quot;Amount&quot; yField=&quot;Name&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!--&amp;lt;apex:pieSeries dataField=&quot;amount&quot; labelField=&quot;name&quot;/&amp;gt;--&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:legend position=&quot;right&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:chart&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:chart data=&quot;{!Opportunities}&quot; width=&quot;500&quot; height=&quot;250&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:axis type=&quot;Category&quot; position=&quot;bottom&quot; fields=&quot;Name&quot; title=&quot;Name&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:axis type=&quot;Numeric&quot; position=&quot;left&quot; fields=&quot;Amount&quot; title=&quot;Amount&quot; grid=&quot;true&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:lineSeries axis=&quot;left&quot; fill=&quot;true&quot; &amp;nbsp;xField=&quot;Name&quot; yField=&quot;Amount&quot; &amp;nbsp;markerType=&quot;cross&quot; markerSize=&quot;4&quot; markerFill=&quot;#FF0000&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:chart&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputPanel&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:outputPanel style=&quot;float:right;margin-right:4cm;height:600px;width:400px;&quot; &amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;p&amp;gt;&amp;lt;b&amp;gt; Opportunity Table&amp;lt;/b&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;apex:pageBlockTable value=&quot;{!Opportunities}&quot; var=&quot;opp&quot;&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headerValue=&quot;Opportunity&quot; value=&quot;{!opp.Name}&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headerValue=&quot;Amount&quot; value=&quot;{!opp.amount}&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;apex:column headerValue=&quot;Created Date&quot; value=&quot;{!opp.createddate}&quot; style=&quot;width:80px&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockTable&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:outputPanel&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlockSection&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/apex:pageBlock&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/apex:form&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;lt;/apex:page&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;My controller is&amp;nbsp;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;public class OppsControllernew {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; // Get a set of Opportunities&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; public ApexPages.StandardSetController setCon {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; get {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(setCon == null) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setCon = new ApexPages.StandardSetController(Database.getQueryLocator(&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [SELECT Name, Type,createddate, Amount, Closedate FROM Opportunity]));&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; setCon.setPageSize(5);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return setCon;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; public List&amp;lt;Opportunity&amp;gt; getOpportunities() {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return (List&amp;lt;Opportunity&amp;gt;) setCon.getRecords();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;A&amp;nbsp;&lt;span class=&quot;ph&quot;&gt;Visualforce&lt;/span&gt;&amp;nbsp;chart binds to the source of its data through the data attribute on the&amp;nbsp;&lt;samp class=&quot;codeph apex_page&quot;&gt;&lt;span class=&quot;tag&quot; style=&quot;color: #00008c;&quot;&gt;&amp;lt;apex:chart&lt;/span&gt;&amp;gt;&lt;/samp&gt;&amp;nbsp;component.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Here data source is&amp;nbsp;sObjects that is Opportunity.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Data can be&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Name of java script function&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&amp;nbsp;Non-&lt;span class=&quot;ph&quot;&gt;&lt;span class=&quot;ph&quot;&gt;Salesforce&lt;/span&gt;&lt;/span&gt;&amp;nbsp;data sources by building a JavaScript array&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span class=&quot;ph&quot;&gt;Apex&lt;/span&gt;&amp;nbsp;wrapper objects&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;The object field names used as data attributes are case-sensitive in JavaScript while field names in&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ph&quot; style=&quot;line-height: 1.2em;&quot;&gt;Apex&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;and&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;ph&quot; style=&quot;line-height: 1.2em;&quot;&gt;Visualforce&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;are case-&lt;/span&gt;&lt;strong class=&quot;ph b&quot; style=&quot;line-height: 1.2em;&quot;&gt;in&lt;/strong&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;sensitive. Be careful to use the precise field name in the&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;samp class=&quot;codeph apex_page&quot; style=&quot;line-height: 1.2em;&quot;&gt;fields&lt;/samp&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;samp class=&quot;codeph apex_page&quot; style=&quot;line-height: 1.2em;&quot;&gt;xField&lt;/samp&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;, and&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;samp class=&quot;codeph apex_page&quot; style=&quot;line-height: 1.2em;&quot;&gt;yField&lt;/samp&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;line-height: 1.2em;&quot;&gt;attributes of axes and data series components, or your chart will silently fail.Make sure all the name perfectly equal between fields , xFields and yFields.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; line-height: 1.2em;&quot;&gt;&lt;b&gt;&lt;u&gt;Limitations Of Visualforce Charting&amp;nbsp;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; margin-top: 1em;&quot;&gt;
&lt;ul style=&quot;line-height: 1.4; list-style-image: initial; list-style-position: initial; margin: 0.5em 0px; padding: 0px 2.5em;&quot;&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; line-height: 14.3906px;&quot;&gt;&lt;span class=&quot;ph&quot; style=&quot;line-height: 14.6875px;&quot;&gt;Visualforce&lt;/span&gt;&lt;span style=&quot;line-height: 14.6875px;&quot;&gt;&amp;nbsp;charts only render in browsers which support scalable vector graphics (SVG).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;line-height: 14.3906px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; line-height: 14.6875px;&quot;&gt;Visualforce charts won’t display in pages rendered as PDFs&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li style=&quot;border: none; margin: 0px 0px 0.25em; padding: 0.25em 0px;&quot;&gt;&lt;span style=&quot;line-height: 14.3906px;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; line-height: 14.6875px;&quot;&gt;Dynamic (&lt;span class=&quot;ph&quot;&gt;Apex&lt;/span&gt;-generated) charting components are not supported at this time&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif; line-height: 14.6875px;&quot;&gt;Now the final out put will be like this&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5eiW57PSnyZIvLW6ZUFpUkBlw1kCNFxtQG6WiHflLimf4RqdvGBMMOjG5WFRXEQ-y6iXAc8jWBlJ36qTcgarzW6lHyVXu4B2FY8wvXO87rcVZDFu6vJOeW2JtYU8LhN1QkwCcsk3JaOQ/s1600/Final+Image.png&quot; imageanchor=&quot;1&quot; style=&quot;color: #015782; margin-left: 1em; margin-right: 1em; text-decoration-line: none;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;152&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5eiW57PSnyZIvLW6ZUFpUkBlw1kCNFxtQG6WiHflLimf4RqdvGBMMOjG5WFRXEQ-y6iXAc8jWBlJ36qTcgarzW6lHyVXu4B2FY8wvXO87rcVZDFu6vJOeW2JtYU8LhN1QkwCcsk3JaOQ/s320/Final+Image.png&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 1px solid rgb(204, 204, 204); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 20px; padding: 8px; position: relative;&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://whatasalesforce.blogspot.com/feeds/2616538131186498261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/visualforce-charting-in-salesforce.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/2616538131186498261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1045371189442129818/posts/default/2616538131186498261'/><link rel='alternate' type='text/html' href='http://whatasalesforce.blogspot.com/2017/12/visualforce-charting-in-salesforce.html' title='VisualForce Charting in Salesforce'/><author><name>Ghattamaneni Chaithanya</name><uri>http://www.blogger.com/profile/17207506297121389147</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='19' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJQX5u2Kj7UChWPr-rI96ihcgtdNZv3-YJ_OHYpINF_tyZCDIQWcykHma8Bcas33qbIKpOsuzggUiR5zGgvX0IeI-x8y_W3hltJ3bzAPJa8XRTt-Ue0AWLBogJBVof6w/s220/20180107_162617.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5eiW57PSnyZIvLW6ZUFpUkBlw1kCNFxtQG6WiHflLimf4RqdvGBMMOjG5WFRXEQ-y6iXAc8jWBlJ36qTcgarzW6lHyVXu4B2FY8wvXO87rcVZDFu6vJOeW2JtYU8LhN1QkwCcsk3JaOQ/s72-c/Final+Image.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>