Skip to main content

Miscellaneous Tools

Miscellaneous tools is a set of tools that most of us need but hard to find in one place, and we thought it would be awesome to include them as part of Brobench.

Text Tool

Text Tool is a handy tool that provides many operations that you can perform on lines of text. For ex., converting Sf Ids from 18 to 15 chars or vice versa, extracting Ids from text, quickly compare two text blobs to see the difference, match two blobs of text and identify matching/non-matching lines and much more.

Usage

The main elements of the Text Tool are shown in the above screenshot.

  • Primary Input: This is the main text input. Usually the input text is processed by lines by some operations may consume whole text

  • Secondary Input: Some operations need 2 inputs to function and in such cases, secondaty input is read from here

  • Operation: This is the text operation that you are performing

  • Options: List of options to specify. Options are comma separated, case-insensitive key-value pairs. For ex., size=10

  • Output: This is the output of the operation

  • History: As you perform operations, Text Operation and Options are captured so you can recall them back.

Operations

OperationOptionsInput ModeSecondary InputsDescription
18 Char IdsBy LineConverts text in each line to 18 digit ids. Ignores invalid Sfdc Ids
15 Char IdsBy LineConverts text in each line to 15 digit ids. Ignores invalid Sfdc Ids
Extract Idsgroup (boolean, default false): Groups the Ids by its prefixWhole TextExtracts Ids from given input.
In Clause Stringmax (int, default 500): Maximum number of values per In Clause String
size (int, default 50): Number of values per line In Clause String
By LineOptionalCreates a SOQL In Clause string from main input. If you specify any text in Input2, then that text is prefixed to all generated strings. If Input2 contains {{value}} keyword, then output is generated by replace that keyword.
DuplicatesBy LineOptionalIdentifies the duplicate lines in the input. If there is Inpu2, then identifies duplicates between 2 inputs else identifies duplicate lines in main input
Sortcase (boolean, default false): Sort case sensitivelyBy LineSorts the lines in input1
Sort Reversecase (boolean, default false): Sort case sensitivelyBy LineReverse sorts the lines in input1
UniqueBy LineRemoves the duplicate lines in input1
TrimBy LineTrims (removes, non-whitespace chars) from line beginning and end
Pad Leftsize (int, required): Size of padded strings
char (int, default 0): Char to pad
By LineAdds left padding to strings
Pad Rightsize (int, required): Size of padded strings
char (int, default 0): Char to pad
By LineAdds right padding to strings
Truncate Leftsize (int, required): Number of chars before which chars are truncatedBy LineTruncates the left side of the string
Truncate Rightsize (int, required): Number of chars after which chars are truncatedBy LineTruncates the right side of the string

Auth Checker

Auth Checker tools helps you validate the authentication information for a Salesforce Org. Typical use case is that, you have a credentials.