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
| CASE( | |
| MOD( | |
| FLOOR( | |
| ( | |
| MOD(HOUR(TIMENOW() - 18000000), 12) * 60 + | |
| MINUTE(TIMENOW() - 18000000) + | |
| 15 | |
| ) / 30 |
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
| //This returns a text value. If you need it to return an integer, you can simply wrap the whole thing in a "VALUE()" formula. | |
| RIGHT( | |
| TEXT( | |
| PI()*( | |
| ASCII(RIGHT(Id,1))*ASCII(RIGHT(Id,2))*ASCII(RIGHT(Id,3)) | |
| )/ UNIXTIMESTAMP(CreatedDate) | |
| ), 5 | |
| ) |
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
| @isTest | |
| public without sharing class flowDataTool_Test { | |
| @isTest | |
| private static void getRandom_test() { | |
| flowDataTool.randFlowInput tempInput = new flowDataTool.randFlowInput(); | |
| tempInput.smallestNumber = 0.0; | |
| tempInput.largestNumber = 100.0; | |
| tempInput.precision = 2; | |
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
| /*//////////////////////////////////////////////////////////////////////////////////////// | |
| // // | |
| // Summary: A Dev Console Script to Delete Work-Items from Salesforce DevOps Center // | |
| // // | |
| ////////////////////////////////////////////////////////////////////////////////////////*/ | |
| String deployToDelete = 'WI-XXXXXX'; //Replace this value with the Work Item you want to delete. | |
| List<SObject> deploymentRecordsToClear = new List<Sobject>(); | |
| List<SObject> workItemToDelete = (List<SObject>) [SELECT Id FROM sf_devops__Work_Item__c WHERE Name = :deployToDelete LIMIT 1]; |