Skip to content

Instantly share code, notes, and snippets.

@iamthefbi
iamthefbi / deploy.ps1
Created April 3, 2019 08:06 — forked from manzanit0/deploy.ps1
PowerShell Script to deploy repository to Salesforce. It uses SFDX CLI.
# https://codereview.stackexchange.com/questions/200870/powershell-script-to-deploy-repository-to-salesforce
param([string] $repositoryDirectory, [bool] $isProduction)
# TODO - git integration. Select a branch and check it out for deploy.
# TODO - break stuff into functions and reusable pieces. ¿piping? ¿cmdlets?
# TODO - Allow directory structures?
Write-Host -ForegroundColor green ":: Validating Repository ::"
$srcDirectory = [System.IO.Path]::Combine($repositoryDirectory, "src")

Salesforce OAuth 2.0 JWT Bearer Token Flow Walk-Through

This document will walk you through how to create or configure a Salesforce application for use with JWT authentication. These configuration steps and the example code works as of Salesforce API version 42.0.

Prerequisites

Create an RSA x509 private key/certification pair

@iamthefbi
iamthefbi / README.md
Created March 7, 2019 09:18
JWT Bearer Token Flow

Certificate Page

setup-certificate-create

Create certificate

jwt-certificate

Download certificate

@iamthefbi
iamthefbi / gist:5e516f88e7ce10eeafabe60cd63fdcb3
Created July 10, 2018 08:03
Salesforce Objects with IsDeleted field - by Chuck Liddell
acceptedeventrelation = true
account = true
accountcleaninfo = true
accountcontactrole = true
accountfeed = true
accounthistory = true
accountpartner = true
accountshare = true
actionlinkgrouptemplate = true
actionlinktemplate = true
@iamthefbi
iamthefbi / streamingNotifications.html
Created April 27, 2016 12:45 — forked from abhinavguptas/streamingNotifications.html
Force.com Streaming API Chrome Desktop Notifications
<apex:page sidebar="false" tabStyle="Account">
<apex:includeScript value="{!URLFOR($Resource.comet, 'cometd.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.comet, 'jquery-1.5.1.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.comet, 'jquery.cometd.js')}"/>
<apex:includeScript value="{!URLFOR($Resource.comet, 'json2.js')}"/>
<style type="text/css">
#chatterNotificationPanel {
display: none;
}