Skip to main content

Text Tool

Text Tool is a handy feature of the Brobench extension which provides many operations that you can perform of on lines of text, for ex., converting Sf Ids from 18 to 15 chars, extracting Ids from text, etc.,

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