This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class="slds-card"> | |
| <div class="fullcall" lwc:dom="manual"></div> | |
| </div> | |
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public with sharing class GlobalDescribe { | |
| public static Map<String, SObjectType> TYPES = Schema.getGlobalDescribe(); | |
| public static Map<String, DescribeSObjectResult> DESCRIBES = new Map<String, DescribeSObjectResult>(); | |
| public static SObjectType type(String name) { | |
| return TYPES.get(name); | |
| } | |
| public static DescribeSObjectResult get(String name) { | |
| if(!DESCRIBES.containsKey(name)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const jsforce = require('jsforce'); | |
| const jwt = require("salesforce-jwt-bearer-token-flow"); | |
| // create the connection to the org | |
| let conn = new jsforce.Connection(); | |
| // load the private key for the token | |
| let privateKey = require('fs').readFileSync('./server.key', 'utf8'); | |
| jwt.getToken({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * A basic pub-sub mechanism for sibling component communication | |
| * | |
| * TODO - adopt standard flexipage sibling communication mechanism when it's available. | |
| */ | |
| const events = {}; | |
| /** | |
| * Registers a callback for an event |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### Setup Import File and Permission Set | |
| # Step 1. Export the RecordTypes | |
| -> sfdx force:data:tree:export -q "SELECT ID, Name, DeveloperName, SobjectType FROM RecordType" -o data | |
| Wrote 1 records to data/RecordType.json | |
| # Here is what the export might look like | |
| -> more data/RecordType.json | |
| { |