Skip to content

Instantly share code, notes, and snippets.

View alexed1's full-sized avatar

Alex Edelstein alexed1

View GitHub Profile
<h2>Index</h2>
<script src="~/Scripts/DataTables-1.10.0/media/js/jquery.dataTables.js"></script>
<link href="~/Content/DataTables-1.10.0/media/css/jquery.dataTables.css" rel="stylesheet" />
<table id="tblbookingrequest" class="table table-with-action">
<thead>
<tr>
<th>Date Recieved</th>
<th>From</th>
<th>Subject</th>
@alexed1
alexed1 / gist:8b4f8d6528817bb74e53d60dc60c35cf
Created September 17, 2017 17:15
Simple Process that Listens to Event and Posts to Chatter
{
"fullName": "without_flow_launch-2",
"actionCalls": [{
"name": "eventContextErrorEmail",
"label": "Context Error Email",
"locationX": "0",
"locationY": "0",
"actionName": "emailSimple",
"actionType": "emailSimple",
"inputParameters": [{
@alexed1
alexed1 / gist:2128b75bce1d58b1bb803ae198bf1627
Created September 17, 2017 17:22
That Same Process, with a Launch Flow
{
"fullName": "with_flow_launch-1",
"actionCalls": [{
"name": "eventContextErrorEmail",
"label": "Context Error Email",
"locationX": "0",
"locationY": "0",
"actionName": "emailSimple",
"actionType": "emailSimple",
"inputParameters": [{
@alexed1
alexed1 / gist:4b334214fc106071583d87d3efdb97ac
Created September 17, 2017 17:42
With No Event Trigger
{
"fullName": "With_No_Event_Trigger-1",
"actionCalls": [{
"processMetadataValues": [{
"name": "postTarget",
"value": {
"stringValue": "group_edelstein"
}
}, {
"name": "textJson",
{
"fullName": "alexed925TriggerTest-2",
"actionCalls": [{
"name": "eventContextErrorEmail",
"label": "Context Error Email",
"locationX": "0",
"locationY": "0",
"actionName": "emailSimple",
"actionType": "emailSimple",
"inputParameters": [{
@alexed1
alexed1 / gist:ba746b559e284355b07f5f698c0e04f3
Created September 27, 2017 22:21
swagger json for AWS API to Lambda
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Calculate Churn Swagger json",
"description": "Calculate Churn"
},
"schemes": [
"https"
],
{
"fullName": "NBADemoV2_1-18",
"actionCalls": [{
"name": "Get_Churn_From_AWS_Lambda_v3",
"label": "Get Churn From AWS Lambda",
"locationX": "526",
"locationY": "254",
"actionName": "GetChurnFromAWSLambdav3_customer_custId_churnGET__Service",
"actionType": "apex",
"inputParameters": {
{
"fullName": "Order_New_Checks-42",
"actionCalls": [{
"name": "Post_Order_to_Chatter",
"label": "Post Order to Chatter",
"locationX": "846",
"locationY": "400",
"actionName": "chatterPost",
"actionType": "chatterPost",
"connector": {
<aura:component controller="NBAComponentController" implements="flexipage:availableForAllPageTypes,force:appHostable" access="global" >
<ltng:require scripts="{!$Resource.cometd}" afterScriptsLoaded="{!c.onCometdLoaded}"/>
<aura:attribute name="sessionId" type="String"/>
<aura:attribute name="cometd" type="Object"/>
<aura:attribute name="cometdSubscriptions" type="Object[]"/>
<aura:registerEvent name="toastEvent" type="force:showToast"/>
<aura:attribute name="label" type="String" default=""/>
@alexed1
alexed1 / gist:512abc577a6efcda2842b79101905304
Created October 20, 2017 00:35
main component controller
({
onCometdLoaded : function(component, event, helper) {
var cometd = new org.cometd.CometD();
component.set('v.cometd', cometd);
if (component.get('v.sessionId') != null)
helper.connectCometd(component);
},
handleAcceptClick: function(component, event, helper) {