Skip to content

Instantly share code, notes, and snippets.

View allisonletts's full-sized avatar

Allison Letts allisonletts

View GitHub Profile
//Use below code snippet to Schedule Async Framework to run every 15 minutes and clear the queue
//Scheduler Run every 15 mins
AsyncApexFrameworkScheduler obj1 = new AsyncApexFramework();
AsyncApexFrameworkScheduler obj2 = new AsyncApexFramework();
AsyncApexFrameworkScheduler obj3 = new AsyncApexFramework();
AsyncApexFrameworkScheduler obj4 = new AsyncApexFramework();
System.schedule('AsyncApexFramework 1', '0 0 * * * ?', obj1);
System.schedule('AsyncApexFramework 2', '0 15 * * * ?', obj2);
System.schedule('AsyncApexFramework 3', '0 30 * * * ?', obj3);
@allisonletts
allisonletts / ContentManager.js
Created May 26, 2021 16:36 — forked from amitastreait/ContentManager.js
How to preview files in Lightning Community using LWC
import { api, LightningElement, track, wire } from 'lwc';
import getContentDetails from '@salesforce/apex/ContentManagerService.getContentDetails';
import deleteContentDocument from '@salesforce/apex/ContentManagerService.deleteContentDocument';
import { NavigationMixin } from 'lightning/navigation';
const columns = [
{ label: 'Title', fieldName: 'Title', wrapText : true,
cellAttributes: {
iconName: { fieldName: 'icon' }, iconPosition: 'left'
}