Skip to content

Instantly share code, notes, and snippets.

@sfdcale
Created September 20, 2019 03:45
Show Gist options
  • Select an option

  • Save sfdcale/4069a2c714f50c703a1bd3fd468ccb4d to your computer and use it in GitHub Desktop.

Select an option

Save sfdcale/4069a2c714f50c703a1bd3fd468ccb4d to your computer and use it in GitHub Desktop.
deleteDebugLogs(){
sfdx force:data:soql:query -q "SELECT Id FROM ApexLog" -r "csv" > out.csv && sfdx force:data:bulk:delete -s ApexLog -f out.csv
}
extendRameshaDevTraceFlagBy24Hours() {
StartDate=$(date -u +%Y-%m-%dT%H:%M:%S.000+0000)
ExpirationDate=$(date -u -v+24H +%Y-%m-%dT%H:%M:%S.000+0000)
#echo "StartDate=$StartDate ExpirationDate=$ExpirationDate"
temp="StartDate=$StartDate ExpirationDate=$ExpirationDate"
sfdx force:data:record:update -t -s TraceFlag -i 7tfM0000000Dd3R -v $temp
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment