|
5 | 5 | <meta charset="UTF-8" /> |
6 | 6 | <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release/build/highlight.js"></script> |
7 | 7 | <script charset="UTF-8" src="../dist/apex.min.js"></script> |
8 | | - <link rel="stylesheet" href="./testcode.css" /> |
9 | | - <!-- <link rel="stylesheet" href="../src/styles/monokai-sublime-apex.css" /> --> |
10 | | - <link rel="stylesheet" href="vs.css" /> |
| 8 | + <!-- <link rel="stylesheet" href="./testcode.css" /> --> |
| 9 | + <link rel="stylesheet" href="../src/styles/monokai-sublime-apex.css" /> |
| 10 | + <!-- <link rel="stylesheet" href="vs.css" /> --> |
11 | 11 | <script> |
12 | 12 | hljs.debugMode(); |
13 | 13 | hljs.highlightAll(); |
|
76 | 76 | * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT |
77 | 77 | * @group Visualforce |
78 | 78 | * @since 2022 |
| 79 | + * @example |
| 80 | + * for (Dashboard d : dashboards) { |
| 81 | + * List<BotField> fields = new List<BotField>(); |
| 82 | + * fields.add(new BotField('Name', d.Title, '/lightning/r/Dashboard/' + d.Id + '/view')); |
| 83 | + * fields.add(new BotField('Folder', d.FolderName)); |
| 84 | + * records.add(new BotRecord(fields)); |
| 85 | + * } |
79 | 86 | */ |
80 | 87 | public with sharing class ActionPlanDetailController { |
81 | 88 |
|
|
325 | 332 |
|
326 | 333 | Database.insert(new planTaskIndexToTask.values()); |
327 | 334 |
|
328 | | - Database.update(dependentTasksToUpdate); |
| 335 | + Database.update(dependentTasksToUpdate, AccessLevel.USER_MODE); |
329 | 336 |
|
330 | 337 | List<Task> myTasksWithOutEmail = new List<Task>(); |
331 | 338 |
|
|
408 | 415 | ActionPlansTriggerHandlers.actionPlansSObjectTriggerHandler('Account'); |
409 | 416 | } |
410 | 417 |
|
| 418 | + public with sharing class GetFirstFromCollection { |
| 419 | + @InvocableMethod |
| 420 | + public static List <Results> execute (List<Requests> requestList) { |
| 421 | + List<SObject> inputCollection = requestList[0].inputCollection; |
| 422 | + SObject outputMember = inputCollection[0]; |
| 423 | + |
| 424 | + //Create a Results object to hold the return values |
| 425 | + Results response = new Results(); |
| 426 | + |
| 427 | + //Add the return values to the Results object |
| 428 | + response.outputMember = outputMember; |
| 429 | + |
| 430 | + //Wrap the Results object in a List container |
| 431 | + //(an extra step added to allow this interface to also support bulkification) |
| 432 | + List<Results> responseWrapper= new List<Results>(); |
| 433 | + responseWrapper.add(response); |
| 434 | + return responseWrapper; |
| 435 | + } |
| 436 | + |
| 437 | + public class Requests { |
| 438 | + @InvocableVariable(label='Records for Input' description='yourDescription' required=true) |
| 439 | + public List<SObject> inputCollection; |
| 440 | + } |
| 441 | + |
| 442 | + public class Results { |
| 443 | + @InvocableVariable(label='Records for Output' description='yourDescription' required=true) |
| 444 | + public SObject outputMember; |
| 445 | + } |
| 446 | + } |
| 447 | + |
411 | 448 | /** |
412 | 449 | * SHOULD BE RECOGNIZED AS JAVA |
413 | 450 | * @author John Smith |
|
0 commit comments