Skip to content

Instantly share code, notes, and snippets.

@pogilvie
pogilvie / json2env.md
Last active May 8, 2021 16:27
Exporting a JSON configuration file to SHELL environment variable
@pogilvie
pogilvie / dx-2019.md
Last active June 1, 2019 17:10
TrailheaDX 2019

Session Source Vs MDAPI format (native format) for cli / DX

  • Pilot force:source:push/pull in sandbox (dependency tracing)
  • requested a way to turn on tracing form the cli (well reieved)

Mulesoft both

  • Question mulesoft be a plaform event producer? Answer yes
  • How should we handle Salesforce downtime with our Mulesoft integrations. Answer logging consumer

Announcements

  • Local development of LWC's
@pogilvie
pogilvie / t.md
Created March 30, 2019 20:16
node/sfdx script
const
    child_process = require('child_process'); 
    
const
    dx = child_process.spawnSync (
        'sfdx',                                                 // command
        [ 'force:schema:sobject:describe', '-s Account'],       // arguments
        {   cwd: process.cwd(),                                 // options
 env: process.env,
@pogilvie
pogilvie / GitCheatsheat.md
Last active February 5, 2019 17:36
Git things I forget

skuid docs

$A.get('e.skuid:apiDebugRequested').fire();
  1. Click the right caret to access the results of the above command.
  2. Right click the highlighted skuid variable in the result.
  3. Click Store as a global variable.
u = new User(Username  = Email
                    ,contactid = c.id
                    ,profileid = p.Id
                    ,alias = fname + count.format()
                    ,email = email
                    ,emailencodingkey = 'UTF-8'
                    ,firstName = fname
                    ,lastname = lname
                    ,timezonesidkey = 'America/Los_Angeles'

Helper function to make firing Toast messages easy in lightning components.

({
    // utility to pop up a toast msg easily
    // type is 'error', 'warning', 'success', or 'info'
    toast: function (type, title, msg) {
        let t = $A.get('e.force:showToast')