This file contains hidden or 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
({ | |
rebuildRecord : function(record, describe) { | |
let testobj = { | |
apiName: "Account", | |
fields : { | |
Name : { | |
displayValue:null, | |
value: "Burlington Textiles Corp of America" | |
} |
This file contains hidden or 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 implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > | |
<aura:attribute name="imgUrl" type="string" required="true" default="https://farm8.staticflickr.com/7683/17369785125_efca0c32ec_o.jpg"/> | |
<img src="{!v.imgUrl}" /> | |
</aura:component> |
This file contains hidden or 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="Case" standardStylesheets="false" cache="false" showHeader="false" doctype="html-5.0"> | |
<apex:includeLightning /> | |
<apex:stylesheet value="/resource/anythingSLDS201/assets/styles/salesforce-lightning-design-system.css" /> | |
<div id="lightning"/> | |
<script> | |
$Lightning.use("c:ServiceCasePath", function() { | |
$Lightning.createComponent("c:AnythingPath", { | |
recordId : "{!$CurrentPage.parameters.Id}", | |
sObjectName : "Case", | |
pathField : "Status" |
This file contains hidden or 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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' | |
### Added by the Heroku Toolbelt | |
export PATH="/usr/local/heroku/bin:$PATH" | |
export PATH=$PATH:~/tools | |
### making sublime command line editor |
This file contains hidden or 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']; |
This file contains hidden or 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
# query the data like this gives you a json file | |
sfdx force:data:tree:export -q "select Bikes_Sold__c, Region__c from Dealer__c" -u cg1 -d data | |
# Problem: there's no query to CSV for bulk api upsert use. So we have to parse/convert that json. | |
# uses npm packages jq and json2csv | |
# convert to csv for bulk API | |
cat data/Dealer__c.json | jq .records | jq 'map(del(.attributes))' | json2csv -o data/Dealer__c.csv |
This file contains hidden or 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
//add this to your ~/.bash_profile | |
alias cdp="mkdir src;sfdx force:source:convert -d src;sfdx force:mdapi:deploy -w 5 -d src" | |
//then, when you want to deploy something to your default alias, | |
cdp | |
//The alias is setup so that you can add other flags on the end, like | |
cdp -u cg2 (deploy somewhere else) | |
cdp -c (just check that it would, but don't really deploy...useful for validation |
This file contains hidden or 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
import wsSubscribe from '../../messages/wsWire/wsWire'; | |
@wire(wsSubscribe, { uri: location.href.replace(/^http/, 'ws'), log: true, fake: true }) | |
wiredResults({ error, data }) { | |
if (error) { | |
console.error('error from ws subscribe wire', error); | |
} else if (data) { | |
console.log(data); | |
this.results = data; | |
} |
This file contains hidden or 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
const progress = cli.progress({ | |
format: `Chunk and upload ${this.flags.csvfile} | {bar} | {value}/{total} Chunks | ETA: {eta_formatted} | Elapsed: {duration_formatted}`, | |
barCompleteChar: '\u2588', | |
barIncompleteChar: '\u2591' | |
}); | |
progress.start(); |
OlderNewer