fflib and at4dx should be pulled locally and pushed to your orgs.
They should NOT be backed up in git.
To install the packages run (from within your SFDX Project):
node --harmony setup.mjs e- ORG_ALIAS
// Query list of Accounts | |
List<Account> accounts = [ | |
SELECT | |
Id, Name | |
FROM | |
Account | |
]; | |
// get Set of Ids of the Object | |
Set<Id> ids = new Set<Id>(new Map<Id, Account>(accounts).keySet()); |
fflib and at4dx should be pulled locally and pushed to your orgs.
They should NOT be backed up in git.
To install the packages run (from within your SFDX Project):
node --harmony setup.mjs e- ORG_ALIAS
String linkedEntityId = 'a05B000000ACLmYIAX'; | |
List<ContentDocumentLink> cdl = [ | |
SELECT | |
ContentDocument.Id, ContentDocument.Title, ContentDocument.FileType, ContentDocumentId | |
FROM ContentDocumentLink | |
WHERE LinkedEntityId =: linkedEntityId | |
]; | |
ContentDocumentLink cdl1 = cdl[0]; |
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "SFDX: Deploy Current File", | |
"type": "shell", | |
"command": "sf", | |
"args": [ | |
"project", | |
"deploy", |
How the heck do I set up a scratch org using sfdx? Well, you're in the right place.
This gist has been moved and published here
String theToken = ''; | |
for (String idPart : UserInfo.getSessionId().split('')) { | |
theToken += '"' + idPart + '",'; | |
} | |
System.debug('[ ' + theToken + '].join(\'\')'); | |
// DEBUG: [ "0", "1", "2", ...].join('') | |
// the output can be pasted into a browser console to join it back into a single string |
/* Allows devs to see errors that probably should be logged to the console but aren't */ | |
.auraErrorBox { | |
width: 100%; | |
} | |
.auraErrorBox > span { | |
display: flex; | |
align-items: center; | |
font-weight: 700; | |
margin-bottom: 8px; | |
} |
.theme-light { | |
--backgroundColorA: var(--c-282339); | |
--backgroundColorA-RGB: 40,35,57; | |
--backgroundColorB: var(--c-211D2F); | |
--backgroundColorC: var(--c-302B42); | |
--backgroundColorD: var(--c-3A3557); | |
--backgroundColorE: var(--c-4A475F); | |
--backgroundColorF: var(--c-191525); | |
--backgroundColorG: var(--c-2F2943); | |
--borderColor3: var(--c-8480A0); |
[ | |
"Blues", | |
"Classic Rock", | |
"Country", | |
"Dance", | |
"Disco", | |
"Funk", | |
"Grunge", | |
"Hip-Hop", | |
"Jazz", |