- Create a new Sheet (or use an existing one)
- Tools -> Script Editor
- Copy + Paste the attached
.js
code snippet (Save) - Back on the sheet, paste in
=FetchAccounts("up:yeah:THE_REST_OF_YOUR_TOKEN_HERE", 0)
- Profit
Don't have an API token, get one here.
function removeDuplicateObjectsByKey(array, fieldToDuplicateCheck) { | |
const newArray = [] | |
const arrayKeys = [] | |
array.forEach((item) => { | |
// check if we don't already have the value within the arrayKeys array | |
if (!arrayKeys.includes(item[fieldToDuplicateCheck])) { | |
// push this value to the arrayKeys array | |
arrayKeys.push(item[fieldToDuplicateCheck]) | |
// push this object to the newArray array |
.js
code snippet (Save)=FetchAccounts("up:yeah:THE_REST_OF_YOUR_TOKEN_HERE", 0)
Don't have an API token, get one here.
String linkedEntityId = 'a05B000000ACLmYIAX'; | |
List<ContentDocumentLink> cdl = [ | |
SELECT | |
ContentDocument.Id, ContentDocument.Title, ContentDocument.FileType, ContentDocumentId | |
FROM ContentDocumentLink | |
WHERE LinkedEntityId =: linkedEntityId | |
]; | |
ContentDocumentLink cdl1 = cdl[0]; |
[ | |
{ | |
"name": "accessible-icon", | |
"type": "lab", | |
"unicode": "" | |
}, | |
{ | |
"name": "american-sign-language-interpreting", | |
"type": "la", | |
"unicode": "" |
let now = new Date() | |
let yr = now.getFullYear() | |
let mth = `${ | |
now.getMonth() + 1 < 10 ? `0${now.getMonth() + 1}` : now.getMonth() + 1 | |
}` | |
let dt = `${date.getDate() < 10 ? `0${date.getDate()}` : date.getDate()}` | |
let hrs = `${ | |
date.getHours() < 10 ? `0${date.getHours()}` : date.getHours() | |
}` | |
let mins = `${ |
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --allow-running-insecure-content |
// 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()); |
String endpoint = URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v47.0/sobjects/NetworkMemberGroup'; | |
HttpRequest httpRequest = new HttpRequest(); | |
httpRequest.setEndpoint(endpoint); | |
httpRequest.setMethod('POST'); | |
httpRequest.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); | |
httpRequest.setHeader('Content-Type', 'application/json;charset=UTF-8'); | |
// Change network id and profile/permission set Id | |
httpRequest.setBody('{"NetworkId":"0DBB00000004d57","ParentId":"00eB0000000fegYIAQ"}'); | |
Http http = new Http(); |
sfdx force:mdapi:deploy -d src -u ORG_ALIAS -w 10 |
curl https://raw.githubusercontent.com/benniemosher/the-one-theme/master/zsh/TheOne.zsh-theme --create-dirs -o ~/.zsh-plugins/the-one-theme/TheOne.zsh-theme | |
source ~/.zsh-plugins/the-one-theme/TheOne.zsh-theme | |
source ~/.zshrc |