Skip to content

Instantly share code, notes, and snippets.

Alex Edelstein alexed1

Block or report user

Report or block alexed1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View lwc on flow cmp1
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="" fqn="lightningSharingWrapper">
<description>This is a demo component.</description>
View Get Products (from Mulesoft demo endpoint)
global with sharing class GetProducts {
public static List<Results> getProducts(List<Requests> requests)
Http http = new Http();
HttpRequest request = new HttpRequest();
String endpoint = requests[0].endpointURL;
System.debug('endpoint is: ' + endpoint);
View GetVehicle.apxc
global with sharing class GetVehicle {
public static List<Results> getVehicle(List<Requests> requests)
Vehicle curVehicle = new Vehicle();
curVehicle.model = 'Tesla';
Vehicle.Wheel curWheel = new Vehicle.Wheel();
View Vehicle.apxc
public with sharing class Vehicle {
@AuraEnabled public String model { get; set; }
@AuraEnabled public List<Wheel> wheels { get; set; }
@AuraEnabled public String engine { get; set; }
@AuraEnabled public String Id { get; set; }
View dynamic creation of flow elements
global with sharing class GenerateFlow {
public GenerateFlow() {
@InvocableMethod(label='GenerateFlow' )
public static List<FlowGenResult> GenerateFlow(List<FlowGenRequest> parameters){
String res = '';
View AssessCustomerStatus.apxc
global with sharing class AssessCustomerStatus {
public static List<Results> GetStatus (List<Requests> requests)
//this operates off the current User
Id userId = UserInfo.getUserId();
User curUser = [select name, RevenueTier__c, contactid, contact.accountid from user where id = :userid];
Integer severeCaseCount = [SELECT COUNT()
View Dynamic Child Component
<aura:component >
<aura:handler event="c:myEvent" action="{!c.handleMyEvent}"/>
I'm a child component
View gist:ad4917f53bed34318e1aa2801a82e911
FROM debian:jessie
RUN apt-get update -y
RUN apt-get install -y git
RUN apt-get install -y curl
RUN apt-get install -y vim
RUN apt-get install -y tcpdump
RUN apt-get install -y screen
RUN apt-get install -y nano
View package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="">
View Hybrid action-offer strategy.xml
<?xml version="1.0" encoding="UTF-8"?>
<RecommendationStrategy xmlns="">
<description>Softbank Call-in Strategy</description>
<!-- Root -->
<description>the root</description>
You can’t perform that action at this time.