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
@RestResource(urlMapping='/v1.0/messages') | |
global class MessageService { | |
@HttpGet | |
global static void getMessages() { | |
// buildMessages gets FeedItems | |
List<Message> messages = buildMessages(); | |
RestResponse res = RestContext.response; |
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 standardcontroller="Account" extensions="ChatterAccountSnapshotExt"> | |
<apex:form > | |
<apex:pageMessages /> | |
<apex:pageBlock title="Service Snapshot"> | |
<apex:pageBlockButtons location="bottom"> | |
<apex:commandButton value="Post to Feed" action="{!post}" /> | |
</apex:pageBlockButtons> | |
<apex:pageBlockSection columns="1"> | |
<apex:pageBlockSectionItem > | |
<apex:outputLabel value="Closed Cases" /> |
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 QuickData { | |
/* QuickData inserts your Mockaroo Schema, no questions asked. Remote Site needed. | |
* USAGE: QuickData.createRecords('MOCKAROOAPIKEY','20689c00',20,List<Lead>.class); | |
* Creates 20 leads using the schema at https://www.mockaroo.com/20689c00 */ | |
public static List<SObject> createRecords(String a, String s, Integer c, Type t) { | |
String fmtStr = 'https://www.mockaroo.com/{1}/download?count={2}&key={0}'; | |
List<String> reqDetails = new List<String>{a,s,String.valueOf(c)}; | |
string requestString = String.format(fmtStr,reqDetails); | |
HttpRequest req = new HttpRequest(); | |
req.setEndpoint(requestString); |
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 > | |
<aura:attribute name="recordIds" | |
type="List" | |
access="public" | |
description="An array of Ids"/> | |
<aura:attribute name="records" | |
type="Map" | |
description="The records!" | |
default="{}"/> | |
<aura:attribute name="errors" |
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
/************************************************** | |
/ Button: Email Affiliated Contacts / | |
/ Author: Matt Horine / | |
/ Client: Step Up to Serve / | |
/ Date: 28 January 2015 / | |
/ / | |
/ Description: Button on Affiliated Contacts / | |
/ related list to allow selection and email of / | |
/ affiliated contacts from the Account Page in / | |
/ the same way the Send an Email button allows / |
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 with sharing class ChatterUtils { | |
// makes a simple chatter text post to the specified user from the running user | |
public static void simpleTextPost(Id userId, String postText) { | |
ConnectApi.FeedType feedType = ConnectApi.FeedType.UserProfile; | |
ConnectApi.MessageBodyInput messageInput = new ConnectApi.MessageBodyInput(); | |
messageInput.messageSegments = new List<ConnectApi.MessageSegmentInput>(); | |
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
# wadewegner.zsh-theme | |
prompt_fn() { | |
config="$(cat .sfdx/sfdx-config.json 2> /dev/null)"; | |
globalConfig="$(cat ~/.sfdx/sfdx-config.json)"; | |
defaultusername="$(echo ${config} | jq -r .defaultusername)" | |
defaultdevhubusername="$(echo ${config} | jq -r .defaultdevhubusername)" | |
globaldefaultusername="$(echo ${globalConfig} | jq -r .defaultusername)" |
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> | |
<head> | |
<script src="{!$Resource.jquery224}"></script> <!-- https://jquery.com/ --> | |
<script src="{!$Resource.jsforce170}"></script> <!-- https://jsforce.github.io/ --> | |
<script>$j = jQuery.noConflict();</script> | |
</head> | |
<body> | |
<form> |
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
<?xml version="1.0"?> | |
<project name="Demo" default="version" basedir="."> | |
<macrodef name="git"> | |
<attribute name="command" /> | |
<attribute name="dir" default="" /> | |
<element name="args" optional="true" /> | |
<sequential> | |
<echo message="git @{command}" /> | |
<exec executable="git" dir="@{dir}"> |
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
// ScratchOrgInfo is an object in your dev hub | |
delete [select id from ScratchOrgInfo where Status = 'Deleted']; |
OlderNewer