salesforce-developer
Audited by Runlayer on Mar 8, 2026
Tool passed security scan
Risky tool definition detected
Mask sensitive data sf apex run --target-org "$TARGET_ORG" << 'EOF' // Mask email addresses List<Contact> contacts = [SELECT Id, Email FROM Contact WHERE Email != null LIMIT 10000]; for (Contact c : contacts) { c.Email = c.Id + '@sandbox.invalid'; } update contacts; System.debug('Masked ' + contacts.size() + ' contact emails'); EOF echo "=== Post-refresh configuration complete ===" ``` --- ## When to Use - **Scratch orgs**: Development and testing of new features - **Sandboxes**: Integration tes
Tool passed security scan
Risky tool definition detected
Description: new Continuation(120); // 120 second timeout cont.continuationMethod = 'processResponse'; HttpRequest request = new HttpRequest(); request.setEndpoint('callout:Slow_External_API/analyze/' + accountId); request.setMethod('GET'); cont.addHttpRequest(request); return cont; } @AuraEnabled public static Object processResponse(List<String> labels, Object state) { HttpResponse response = Continuation.getResponse(labels[0]); if (response.getStatusCode() == 200) { return JSON.deserializeUnty
Tool passed security scan
Risky tool definition detected
Description: WHERE ' + String.join(conditions, ' AND '); } // Add ORDER BY if (String.isNotBlank(orderBy)) { query += ' ORDER BY ' + String.escapeSingleQuotes(orderBy); } // Add LIMIT if (limitCount != null && limitCount > 0) { query += ' LIMIT ' + limitCount; } System.debug('Dynamic Query: ' + query); // Execute query return Database.query(query); } } // Usage Map<String, Object> filters = new Map<String, Object>{ 'Industry' => 'Technology', 'AnnualRevenue' => 1000000 }; List<Account> accounts
Tool passed security scan
Risky tool definition detected
Description: Name = 'Test Account ' + i, Industry = 'Technology' )); } insert accounts; // Create opportunities for some accounts List<Opportunity> opps = new List<Opportunity>(); for (Integer i = 0; i < 50; i++) { opps.add(new Opportunity( Name = 'Test Opp ' + i, AccountId = accounts[i].Id, StageName = 'Closed Won', CloseDate = Date.today(), Amount = 100000 * (i + 1) )); } insert opps; } @isTest static void testUpdateAccountRatings_HotRating() { // Arrange Account acc = [SELECT Id FROM Account
Tool passed security scan
Tool passed security scan