withoutAppCode
The withoutAppCode function extracts everything after the first pipe character in a string, typically used to get descriptions or names without the application code prefix.
Syntax
Section titled “Syntax”{input | withoutAppCode}Parameters
Section titled “Parameters”input(string): A pipe-delimited string (e.g., “APP001|Application Name”)
Returns
Section titled “Returns”- The trimmed content after the first pipe character
- Empty string if no pipe character is found
Examples
Section titled “Examples”Basic extraction
Section titled “Basic extraction”{"APP001|Customer Portal" | withoutAppCode}// Returns: "Customer Portal"With spaces
Section titled “With spaces”{"WEB-002 | E-commerce Platform" | withoutAppCode}// Returns: "E-commerce Platform"No pipe character
Section titled “No pipe character”{"STANDALONE" | withoutAppCode}// Returns: ""Multiple pipes preserved
Section titled “Multiple pipes preserved”{"API-003|Payment Gateway|Production|v2.0" | withoutAppCode}// Returns: "Payment Gateway|Production|v2.0"Application names
Section titled “Application names”{application.full_name | withoutAppCode}// Extracts application name without codeSystem descriptions
Section titled “System descriptions”{"SYS-101|Authentication Service for Internal Users" | withoutAppCode}// Returns: "Authentication Service for Internal Users"Use Cases
Section titled “Use Cases”- Displaying application names without codes
- Creating user-friendly labels from coded strings
- Building descriptive lists from reference data
- Removing technical prefixes for reports
- Extracting human-readable descriptions
Related Functions
Section titled “Related Functions”appCode- Gets the code portion before the pipesplit- More general splitting function with customizable delimiter
This function preserves multiple pipe characters after the first one, joining them back together. This is useful when the description itself contains pipe characters.