This file contains hidden or 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
<template> | |
<p>Confetti and Sweet alert demo using LWC component</p> | |
<canvas class="confettiCanvas" id="canvas" lwc:dom="manual"></canvas> | |
<lightning-card title="Sweet Alert"> | |
<lightning-button | |
label="Success" | |
onclick={showSuccessAlert} | |
variant="success" |
This file contains hidden or 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
trigger someTrigger on MyObject__c (before|after insert|update|delete){ | |
// Declare a collection to hold values we want to query against | |
Set<Id> myIdsSet = new Set<Id>(); | |
// Iterate over a collection of objects, and gather the values we want to query | |
// against | |
for(MyObject__c myObj :trigger.new){ | |
myIdsSet.add(myObj.someLookup__c); | |
} |
This file contains hidden or 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
trigger RollupAssetsonAccount on Asset (after insert, after update) { | |
RollupassetsonAcc_TrgHandler handler = new RollupassetsonAcc_TrgHandler(); | |
// After Insert | |
if(Trigger.isInsert && Trigger.isAfter) | |
{ | |
handler.onAfterInsert_Asset(Trigger.new, Trigger.newMap); | |
} | |
This file contains hidden or 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 with sharing class SignatureHelper { | |
@AuraEnabled | |
public static void saveSign(String strSignElement,Id recId){ | |
// Create Salesforce File | |
//Insert ContentVersion | |
ContentVersion cVersion = new ContentVersion(); | |
cVersion.ContentLocation = 'S'; //S-Document is in Salesforce. E-Document is outside of Salesforce. L-Document is on a Social Netork. | |
cVersion.PathOnClient = 'Signature-'+System.now() +'.png';//File name with extention |
This file contains hidden or 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
/* | |
* | |
* Author : M Hamza Siddiqui | |
* Description : Share file with Parent Record. | |
* Last Modified : Oct 1,2019 | |
* | |
*/ | |
trigger ParentFileSharing on ContentDocumentLink (before insert) { | |
List<ContentDocumentLink> linksToAdd = new List<ContentDocumentLink>(); |
This file contains hidden or 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
/* | |
Author : M Hamza Siddiqui | |
Description : Simple PHP Script to Test Email2Case, Both methods are provided. | |
Date : Aug 2015 | |
*/ | |
<html> | |
<head> | |
<title>Email2Case Generator | |
</title> | |
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> |
This file contains hidden or 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
trigger RollupassetsonAccTrg on Asset (after insert,after update,after delete) { | |
RollupassetsonAcc_TrgHandler handler = new RollupassetsonAcc_TrgHandler(); | |
handler.RollupAssets(Trigger.new, Trigger.newMap, Trigger.old,Trigger.isDelete); | |
} |
This file contains hidden or 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
<script type="text/javascript"> | |
// Case Data preparation | |
var postData = { | |
oid: '00D0b000000xxxx', //Put your ORGID here | |
name:'John Smith', | |
company:'ACME', | |
email:'[email protected]', | |
origin:'Web', | |
subject:'Web2Case using the custom API', |
This file contains hidden or 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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
This file contains hidden or 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="forceCommunity:availableForAllPageTypes" access="global" > | |
<aura:attribute name="SubmitBtnLabel" Type="String" default="Submit" /> | |
<aura:attribute name="CreateCaseBtnLbl" Type="String" default="Create Case" /> | |
<aura:registerEvent name="appEvent" type="selfService:caseCreateFieldChange"/> | |
<lightning:recordEditForm aura:id="recordEditForm" | |
objectApiName="Case" onsuccess="{!c.handleSuccess}"> | |
<lightning:messages /> |