Skip to content

Instantly share code, notes, and snippets.

@ArielS1
ArielS1 / Challenge8.cls
Last active June 16, 2021 01:01
Lightning Experience Specialist - Challenge 8
// For troubleshooting and issues please read the discussions on the comments, it will most likely be one of those issues
// Instructions:
// 1. Manually create a new Opportunity record type named "Individual Opportunity" from Object Manager -> Opportunity -> Record Types
// 2. Add this class to the org from Setup -> Apex Classes -> name of the new class: Challenge8
// 3. Run the following anonymous apex code from Developer Console -> Debug -> Open Execute Anonymous Window:
// try { Challenge8.start(); } catch(Exception e) { System.debug(e + '\nStack Trace:\n' + e.getStackTraceString()); }
public class Challenge8 {
public static void start() {
//truncate all tables
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'cloud-print' ]
2 info using npm@4.0.5
3 info using node@v7.4.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData