Skip to content

Instantly share code, notes, and snippets.

View tamarachance's full-sized avatar

Tamara Chance tamarachance

View GitHub Profile
@tamarachance
tamarachance / BusinessHoursInvocable.apxc
Last active May 20, 2025 20:11
Working with BusinessHours methods in Salesforce Flows
public class BusinessHoursInvocable {
public class Input {
@InvocableVariable(required=true)
public Id businessHoursId;
@InvocableVariable
public Datetime startDate;
@InvocableVariable
@tamarachance
tamarachance / related_records_smoke_test.md
Created November 21, 2023 17:24
An example UAT smoke test plan for a Salesforce feature utilizing the Related Record and update action as a workaround for Dynamic Forms.
@tamarachance
tamarachance / CalculateValues.apxc
Last active July 26, 2023 20:32
Working With Formula Fields in the Before Context of Apex Triggers
/**
* This class's purpose is to automate Opportunity values based on proposal data. The
* Opportunity and Proposal are passed into two separate functions which (1) maps the
* data from the Proposal onto the Opportunity and (2) calculates the Total Value.
*/
public class CalculateValues {
public static void setProposalData(Opportunity opp, Proposal__c proposal) {
setDataFromProposal(opp, proposal);