|
31 | 31 | LIMIT 10];
|
32 | 32 |
|
33 | 33 | List<Opportunity> opps = [SELECT Id FROM Opportunity WHERE Id NOT IN :newRecordsMap.keySet()];
|
| 34 | + |
| 35 | + String queryText = |
| 36 | + 'SELECT Id, Name, AccountId, FirstName, LastName, mailingstreet, mailingcity, mailingstate, mailingpostalcode, mailingcountry, ' + |
| 37 | + 'otherstreet, othercity, otherstate, otherpostalcode, othercountry, mailinglatitude, mailinglongitude, otherlatitude, otherlongitude ' + |
| 38 | + 'FROM Contact WHERE AccountId = :acctid ORDER BY ' + |
| 39 | + String.escapeSingleQuotes(SortFullExp) + |
| 40 | + ' NULLS LAST LIMIT 1000'; |
| 41 | + String queryText = 'SELECT Id, Name, AccountId, FirstName, LastName, mailingstreet, mailingcity, mailingstate, mailingpostalcode, mailingcountry, ' |
34 | 42 | </code></pre>
|
35 | 43 | <p>-------NEW LANGUAGE----------</p>
|
36 | 44 | <pre><code>
|
37 | 45 | @IsTest
|
38 | 46 | private without sharing class myTestClass {
|
39 | 47 | myMap?.get('Id');
|
40 | 48 | }
|
| 49 | + System.URL.getCurrentRequestUrl(); |
| 50 | + System.getCurrentRequestUrl(); |
41 | 51 | </code></pre>
|
42 | 52 | <p>-------NEW LANGUAGE----------</p>
|
43 | 53 | <pre><code class="language-apex">
|
|
46 | 56 | delete myAccount;
|
47 | 57 | delete [SELECT Id FROM Account];
|
48 | 58 |
|
| 59 | + public String myString { get; set; } |
| 60 | + |
49 | 61 | /*
|
50 | 62 | Copyright (c) 2022, salesforce.com, inc.
|
51 | 63 | All rights reserved.
|
|
103 | 115 |
|
104 | 116 | String retURL = '/' + ActionPlansUtilities.getObjectKeyPrefix(ActionPlansUtilities.namespacePrefix + 'ActionPlan__c') + '/o';
|
105 | 117 |
|
106 |
| - String hasTemplateIdParam = ApexPages.currentPage().getParameters().containsKey('templateId'); |
107 |
| - Boolean hasRetURLParam = ApexPages.currentPage().getParameters().containsKey('retURL'); |
108 |
| - |
109 |
| - if (hasTemplateIdParam && true) { |
110 |
| - retURL = '/' + ActionPlansUtilities.getEscapedPageParameter('templateId'); |
111 |
| - } else if (hasRetURLParam && !ActionPlansUtilities.getIsLex()) { |
112 |
| - retURL = '' + ActionPlansUtilities.getEscapedPageParameter('retURL'); |
113 |
| - } |
114 | 118 | Pagereference newPage = new PageReference('' + retURL);
|
115 | 119 | newPage.setRedirect(true);
|
116 | 120 |
|
|
0 commit comments