Skip to content

Instantly share code, notes, and snippets.

@AndersonKatharineTNC
AndersonKatharineTNC / ClassicURL.cmp
Created October 17, 2019 22:47
ClassicURLComponent
<aura:component implements="flexipage:availableForAllPageTypes,force:hasRecordId,force:hasSObjectName" access="global">
<aura:attribute name="sObjectName" type="String" />
<aura:attribute name="url" type="String"/>
<aura:attribute name="hostName" type="String" />
<aura:attribute name="showOpenButton" type="Boolean"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<aura:attribute name="urlClassic" type="String" default="{!v.url+v.recordId}" />
<br/>
<div align="center">
<aura:if isTrue = "{!v.showOpenButton}">
@AndersonKatharineTNC
AndersonKatharineTNC / ApprovalPreviewController.apxc
Last active October 11, 2021 20:54
New Submit for Approval Button (Salesforce)
/*
Written by: Katharine Anderson
Last updated: 04-18-2019
Purpose: This is the controller behind the ApprovalProcessPreview visualforce page (which has lightning
styling in Lightning and classic styling in classic).
Workflow: Allow the approval process submitter to click the new 'submit for approval' button when
they're ready to submit. They will then see who the assigned approvers will be. If it doesn't meet
any entry criteria, then they would be able to go back and fix it instead of getting the standard
error message, which is generally not helpful. This also gives them the opportunity to change who