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
| var classnamescommaseperated = ''; document.querySelectorAll('div[class="x-grid3-cell-inner x-grid3-col-1"][unselectable="on"]').forEach((obj) => {classnamescommaseperated = classnamescommaseperated + ',' + obj.innerText;}); console.log(classnamescommaseperated); |
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
| sfdx force:data:soql:query | |
| --query="SELECT Id,Name,SymbolTable FROM ApexClass WHERE NamespacePrefix = ''" | |
| --usetoolingapi | |
| --targetusername=prod | |
| --json | |
| | jq '.result.records[] | select(.SymbolTable != null) | |
| | select(.SymbolTable.methods[].annotations[].name == "IsTest")' | |
| | jq '.Name' | uniq |
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
| String sessionId = UserInfo.getOrganizationId()+''+UserInfo.getSessionId().SubString(15); | |
| List<String> objNames = new List<String>{'ConsumptionRate','ConsumptionSchedule','ProductConsumptionSchedule'}; | |
| for(String objectapiname: objNames){ | |
| String fieldapiname = 'External_Id';//replace with your field name | |
| String fieldlabel = 'External Id';//replace with your field label | |
| String fielddescription = 'External Id required for migration fro records between environments. Don\'t touch this field.'; | |
| String inlineHelpText = 'External Id required for migration fro records between environments. Don\'t touch this field.'; |
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
| #!/bin/bash | |
| rm -f "out.txt" | |
| git diff --name-only --diff-filter=U > out.txt | |
| while IFS= read -r fileName | |
| do | |
| echo "$fileName" | |
| git checkout --theirs "$fileName" | |
| done < out.txt |
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
| #!/bin/bash | |
| for i in {0..13} | |
| do | |
| echo "Stash number: $i" | |
| git stash show -p stash@{$i} --name-only | cat | |
| done |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Salesforce.com Partner Web Services API Version 47.0 | |
| Generated on 2019-12-06 18:17:28 +0000. | |
| Copyright 1999-2019 salesforce.com, inc. | |
| All Rights Reserved | |
| --> | |
| <definitions targetNamespace="urn:partner.soap.sforce.com" |
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
| java -cp schemaSpy_5.0.0.jar:force-metadata-jdbc-driver-2.3.jar net.sourceforge.schemaspy.Main -t force -u Myusername -p Mypassword -font Arial -fontsize 8 -hq -norows -o doc -db Myorgname -desc "Extracted from Myorgname" -connprops url\\=https://test.salesforce.com/services/Soap/u/23.0 |
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> | |
| <script> | |
| var defaultEventListenerForSubmitBtn; | |
| </script> | |
| <apex:outputPanel id="op-panel"> | |
| </apex:outputPanel> | |
| <apex:commandButton value="Submit" | |
| action="{!controllerActionMethod}" | |
| rerender="op-panel" | |
| onclick="this.value='Processing..';defaultEventListenerForSubmitBtn = this.onclick;this.onclick=function(){this.value='Processing..';return false;}" |
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
| #!/bin/bash | |
| git remote prune origin | |
| rm -f branchesToDelete.txt | |
| git branch -r --merged TEST > branchesToDelete.txt | |
| sed -i '.bak' 's/^[ \t]*origin\///g' branchesToDelete.txt | |
| sed -i '.bak' '/master/d; /QA_branch/d; /Production/d; /OSA_Invoices_Payment/d; /TEST/d; /Invoice_One_Time_Payment/d;' ./branchesToDelete.txt | |
| input="branchesToDelete.txt" | |
| while IFS= read -r branchName | |
| do |
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
| sfdx force:schema:sobject:describe --sobjecttype=Foo_A__c --targetusername=dev --json | jq '.result.fields[]' | jq 'select(.calculatedFormula != null)' | jq '.name' |