Skip to content

Instantly share code, notes, and snippets.

View Deepak-K-Anand's full-sized avatar
🏠
Working from home

Deepak K Anand Deepak-K-Anand

🏠
Working from home
View GitHub Profile
@Deepak-K-Anand
Deepak-K-Anand / RefreshView.cmp
Created May 19, 2019 09:09
A Lightning Component that can be added to Flows to Refresh the Page.
<!--COMPONENT-->
<aura:component implements="lightning:availableForFlowScreens">
<aura:handler name="init" value="{!this}" action="{!c.doInit}"></aura:handler>
</aura:component>
<!--CONTROLLER-->
({
doInit : function(component, event, helper) {
$A.get('e.force:refreshView').fire();
}
=== Commands
force:alias:list # list username aliases for the Salesforce CLI
force:alias:set # set username aliases for the Salesforce CLI
force:apex:class:create # create an Apex class
force:apex:execute # execute anonymous Apex code
force:apex:log:get # fetch a debug log
force:apex:log:list # list debug logs
force:apex:log:tail # start debug logging and display logs
force:apex:test:report # display test results
force:apex:test:run # invoke Apex tests
@Deepak-K-Anand
Deepak-K-Anand / Lead with Campaign Details.html
Last active September 2, 2015 19:56
This is for Kortni Wren. -- Regards,Deepak.
<messaging:emailTemplate subject="New Lead Assigned" recipientType="User" relatedToType="Lead">
<messaging:htmlEmailBody >
<body style="font-family: 'Trebuchet MS'">
<h2>
New Lead Assigned</h2>
<hr style="border: solid thin #0099CC; margin-top: -18px;" />
<br />
<table cellpadding="5" style="border-collapse: collapse" width="100%">
<tr>
<td align="right"
<apex:page standardController="Opportunity" extensions="OpptyGenPDFExtension" renderAs="pdf">
<table width="100%" style="font-family: Arial, Helvetica, sans-serif; border-collapse: collapse;"
cellpadding="5">
<tr>
<td colspan="4">
Opportunity
</td>
</tr>
<tr>
<td colspan="4" style="font-size: x-large; font-weight: bold">
global class SMSUtility{
webService
static String sendSMS(String csvMobileNos, String message){
if(!String.isBlank(csvMobileNos)){
HttpRequest httpReq = new HttpRequest();
HttpResponse httpRes = new HttpResponse();
Http httpStub = new Http();
String requestEndpoint =
'http://clients.smshorizon.in/API/WebSMS/Http/v1.0a/index.php?' +