Created
September 20, 2019 03:45
-
-
Save sfdcale/4069a2c714f50c703a1bd3fd468ccb4d to your computer and use it in GitHub Desktop.
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
| 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