I hereby claim:
- I am surajp on github.
- I am surajp (https://keybase.io/surajp) on keybase.
- I have a public key whose fingerprint is E697 5288 01FE 150B 3247 E81C A286 046F 8195 E8D9
To claim this, I am signing this object:
/************************************************************ | |
*** @author: Suraj Pillai | |
*** @group: Utils | |
*** @date: 01/2020 | |
*** @description: A class for deleting a bunch of records after checking for delete access for each sobject, given a list of recordIds | |
*/ | |
public with sharing class GenericDelete { |
find {AuraEnabled} in ALL FIELDS RETURNING ApexClass (Name) |
import { LightningElement } from 'lwc'; | |
const BASE_URL='https://accounts.google.com/o/oauth2/v2/auth'; | |
export default class Goauth extends LightningElement { | |
doAuth(){ | |
let client_id='<your client id>'; |
/** Example 1: uniq([ | |
{name:'John',id:1}, | |
{name:'Jane',id:2}, | |
{name:'John',id:3}, | |
{name:'Jack',id:4} | |
],e=>e.name)= [ | |
{name:'John',id:3}, | |
{name:'Jane',id:2}, | |
{name:'Jack',id:4} | |
] |
public with sharing class CheckFeatureController { | |
@AuraEnabled | |
public static boolean checkFeature(String featureName){ | |
return FeatureManagementCheckerFactory.getFeatureManagementChecker().checkPermission(featureName); | |
} | |
} |
public class CSVColIterator implements Iterator<String> { | |
private String colDelimiter=','; | |
private String textQualifier='"'; | |
private String row=''; | |
private Integer currentIndex=0; | |
public CSVColIterator(String row){ | |
this.row = row; | |
} |
HttpRequest request = new HttpRequest(); | |
request.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); | |
request.setMethod('DELETE'); | |
Http sender = new Http(); | |
for(ApexLog log: [Select Id from ApexLog]){ | |
request.setEndpoint(URL.getSalesforceBaseUrl().toExternalForm()+'/services/data/v36.0/tooling/sobjects/ApexLog/'+log.Id+'/'); | |
sender.send(request); | |
} |
(inp) => | |
((elements) => | |
inp.length != 15 | |
? Error("invalid id") | |
: inp + | |
Object.values(elements) | |
.map((a) => "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345".charAt(a)) | |
.join(""))( | |
inp.split("").reduce( | |
(op, curr, index) => { |
<template> | |
<div class="slds-p-around_small"> | |
<lightning-input label="Object Name" onchange={changeName}></lightning-input> | |
<lightning-input label="My Domain" onchange={changeDomain}></lightning-input> | |
<lightning-helptext content="Use document.cookie.match(/sid=([^;]*)/)[1] in the browser console after logging into SF" class="slds-p-right_xx-small"></lightning-helptext> | |
<lightning-input label="SessionId" onchange={changeSessionId}> | |
</lightning-input> | |
<lightning-textarea label="CSV Data"></lightning-textarea> | |
<lightning-button onclick={upload} label="upload"></lightning-button> |
I hereby claim:
To claim this, I am signing this object: