Skip to content

Instantly share code, notes, and snippets.

View renatoliveira's full-sized avatar
🏠
Working from home

Renato Oliveira renatoliveira

🏠
Working from home
View GitHub Profile
@renatoliveira
renatoliveira / QuotePDFGenerator.apex
Created April 27, 2021 17:31 — forked from citrus/QuotePDFGenerator.apex
Generate Quote PDF via Salesforce REST API
global class QuotePDFGenerator {
@future(callout=true)
public static void AttachPDFToQuote(String Id) {
try {
CreateQuoteDocumentFromPDF(Id);
} catch(exception ex) {
System.debug('Error: ' + ex);
}
}
@renatoliveira
renatoliveira / MultiMap.cls
Created September 3, 2024 12:58 — forked from aidan-harding/MultiMap.cls
A MultiMap for Salesforce Apex
/**
* @author aidan@processity.ai
* @date 29/08/2024
* @description A map where the items are lists of items and you can provide a function for how values map to keys.
* Oh, if we had generics....
*/
public class MultiMap {
private Map<Object, List<Object>> theMap;
private Type listType;

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