This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,flexipage:availableForAllPageTypes" | |
controller="<CONTROLLER_NAME>" access="global"> | |
<aura:attribute name="recordId" type="Id" /> | |
<aura:attribute name="showSpinner" type="Boolean" default="false" /> | |
<aura:handler name="init" action="{!c.doInit}" value="{!this}"/> | |
<!-- Spinner component --> | |
<aura:if isTrue="{!v.showSpinner}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Group> groups = [SELECT Id FROM Group WHERE Name in ('<QUEUE NAME>') AND Type = 'Queue' ]; | |
List<User> usersToBeAdded = [SELECT Id FROM User WHERE Username in ('<user_email_id>')]; | |
List<GroupMember> groupMembershipRecordsToBeCreated = new List<GroupMember>(); | |
for(Group gp : groups){ | |
for(User theUser : usersToBeAdded){ | |
groupMembershipRecordsToBeCreated.add(new GroupMember( | |
GroupId = gp.Id, | |
UserOrGroupId = theUser.Id | |
)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @ApexClass : <APEX_CLASS_NAME> | |
* @Description : This a schedulable batch. | |
*/ | |
global class <APEX_CLASS_NAME> implements schedulable, Database.Batchable<sObject>, Database.AllowsCallouts { | |
global String query = ''; | |
global <APEX_CLASS_NAME>(){ | |
query = '<QUERY_GOES_HERE>'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- LIGHTNING COMPONENT TEMPLATE BEGIN --> | |
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId,flexipage:availableForAllPageTypes" | |
controller="<CONTROLLER_NAME>" access="global"> | |
<aura:attribute name="recordId" type="Id" /> | |
<aura:attribute name="showSpinner" type="Boolean" default="false" /> | |
<aura:handler name="init" action="{!c.doInit}" value="{!this}"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN apk update | |
RUN apk add bash | |
RUN apk add openssh | |
RUN apk add git | |
RUN apk add openjdk8 | |
RUN apk add apache-ant --update-cache \ | |
--repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ \ | |
--allow-untrusted | |
ENV ANT_HOME /usr/share/java/apache-ant |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class EmailReportExport implements Reports.NotificationAction { | |
public void execute(Reports.NotificationActionContext context) { | |
this.createCSVFileAndSendEmail(context.getReportInstance().getReportResults()); | |
} | |
private void createCSVFileAndSendEmail(Reports.ReportResults results){ | |
//Get header column labels | |
MAP<String,Reports.DetailColumn> headerColumnMap = results.getReportExtendedMetadata().getDetailColumnInfo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page > | |
<apex:includeLightning /> | |
<div id="lightning" /> | |
<button type="button" onclick="callLightningEvent();">Call Lightning Code From VF</button> | |
<script> | |
window.onload = function() { | |
$Lightning.use("c:LightningOutExampleApp", function() { | |
var comapp=$Lightning.createComponent("c:LightningOutExample", | |
{}, | |
"lightning", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page > | |
<apex:includeLightning /> | |
<div id="lightning" /> | |
<button type="button" onclick="callLightningEvent();">Call Lightning Code From VF</button> | |
<script> | |
window.onload = function() { | |
$Lightning.use("c:LightningOutExampleApp", function() { | |
var comapp=$Lightning.createComponent("c:LightningOutExample", | |
{}, | |
"lightning", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:application access="GLOBAL" extends="ltng:outApp"> | |
<aura:dependency resource="c:LightningOutExample"/> | |
</aura:application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<aura:event type="APPLICATION" description="Event template" > | |
<aura:attribute name="data" type="Object"/> | |
</aura:event> |