Skip to content

Custom Commands

Create custom commands with SOQL queries to search any Salesforce data.

Creating Commands

  1. Open UltraForce with Cmd+B / Ctrl+B
  2. Click the settings icon
  3. Navigate to "Custom Commands"
  4. Click "Add Command"

Command Properties

PropertyDescriptionRequired
CommandShort key to triggerYes
DescriptionWhat this command doesYes
SOQL QueryQuery with {query} placeholderYes
Name FieldField to display as nameYes
Description FieldsAdditional fields to showNo
Use Tooling APIEnable for metadata objectsNo

SOQL Query Format

The query must include {query} as placeholder:

sql
SELECT Id, Name, Field1, Field2
FROM ObjectName
WHERE Name LIKE '%{query}%'
ORDER BY Name
LIMIT 50

Examples

Debug Logs

Command: log
Description: Debug Logs
SOQL: SELECT Id, LogUser.Name, Operation, LogLength FROM ApexLog WHERE LogUser.Name LIKE '%{query}%' ORDER BY StartTime DESC LIMIT 50
Name Field: LogUser.Name
Description Fields: Operation, LogLength
Use Tooling API: Yes

Accounts

Command: acc
Description: Accounts
SOQL: SELECT Id, Name, Industry, Website FROM Account WHERE Name LIKE '%{query}%' ORDER BY Name LIMIT 50
Name Field: Name
Description Fields: Industry, Website
Use Tooling API: No

Contacts

Command: con
Description: Contacts
SOQL: SELECT Id, Name, Email, Account.Name FROM Contact WHERE Name LIKE '%{query}%' ORDER BY Name LIMIT 50
Name Field: Name
Description Fields: Email, Account.Name
Use Tooling API: No

Cases

Command: case
Description: Cases
SOQL: SELECT Id, CaseNumber, Subject, Status FROM Case WHERE Subject LIKE '%{query}%' ORDER BY CreatedDate DESC LIMIT 50
Name Field: CaseNumber
Description Fields: Subject, Status
Use Tooling API: No

Async Jobs

Command: job
Description: Async Apex Jobs
SOQL: SELECT Id, ApexClass.Name, Status, CreatedDate FROM AsyncApexJob WHERE ApexClass.Name LIKE '%{query}%' ORDER BY CreatedDate DESC LIMIT 50
Name Field: ApexClass.Name
Description Fields: Status
Use Tooling API: Yes

REST API vs Tooling API

APIUse For
REST APIStandard/Custom objects (Account, Contact, etc.)
Tooling APIMetadata objects (ApexLog, ApexClass, etc.)

Import / Export

Export

  1. Click "Export" button
  2. JSON file downloads with all custom commands

Import

  1. Click "Import" button
  2. Select JSON file
  3. Commands merge with existing ones

Tips

  • Use relationship fields for richer results (e.g., Owner.Name)
  • Add ORDER BY for consistent result ordering
  • Use LIMIT to control performance
  • Test queries in Developer Console first

Released under the MIT License.