Aura Methods: [ bulkInsert, bulkUpdate, bulkDelete ]
// In cmp
<c:DML sObjectType="Contact" aura:id="dmlUtil" /> | #!/bin/bash | |
| Ids=`sfdx data query -q 'SELECT id FROM ApexLog' --json | jg -r | |
| '.result.records[].Id'` | |
| while IFS= read -r line; do | |
| echo "sfdx apex log get -i $line -d .sfdx/tools/debug/logs" | |
| sfdx apex log get -i $line -d .sfdx/tools/debug/logs/ | |
| done <<< "$Ids" |
| const dayDif = (date1, date2) => Math.ceil(Math.abs(date1.getTime() - date2.getTime()) / 86400000) | |
| dayDif(new Date("2020-10-21"), new Date("2021-10-22")) | |
| // Result: 366 |
| const copyToClipboard = (text) => navigator.clipboard.writeText(text); | |
| copyToClipboard("This Sring is Copied To Clipboard."); |
| global class ApexScheduler implements Schedulable { | |
| String className; | |
| global ApexScheduler(String className){ | |
| this.className = className; | |
| } | |
| public Interface IScheduler { | |
| void execute(SchedulableContext sc); | |
| } |
| Set < Id > permissionSetIds = new Set < Id >(); | |
| List < User > userList = new List < User >(); | |
| for ( SetupEntityAccess access : [ SELECT ParentId FROM SetupEntityAccess | |
| WHERE SetupEntityId IN ( SELECT Id | |
| FROM CustomPermission | |
| WHERE DeveloperName = 'Allow_Save_Offer_Owner_Edit' ) | |
| ]){ | |
| permissionSetIds.add(access.ParentId); | |
| } | |
| System.debug(permissionSetIds); |
| // Future versions of Hyper may add additional config options, | |
| // which will not automatically be merged into this file. | |
| // See https://hyper.is#cfg for all currently supported options. | |
| module.exports = { | |
| config: { | |
| // choose either `'stable'` for receiving highly polished, | |
| // or `'canary'` for less polished but more frequent updates | |
| updateChannel: 'stable', |
| // Row number from where to fill in the data (starts as 1 = first row) | |
| var CUSTOMER_ID = 2; // 1st row may contains column headers | |
| // Google Doc id from the document template | |
| // (Get ids from the URL) | |
| var SOURCE_TEMPLATE = "sdsv"; | |
| // In which spreadsheet we have all the customer data | |
| var CUSTOMER_SPREADSHEET = "svs"; |
| document.cookie.match(/(^|;\s*)sid=(.+?);/)[2]; |