Skip to content

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.

{input | withoutAppCode}
  • input (string): A pipe-delimited string (e.g., “APP001|Application Name”)
  • The trimmed content after the first pipe character
  • Empty string if no pipe character is found
{"APP001|Customer Portal" | withoutAppCode}
// Returns: "Customer Portal"
{"WEB-002 | E-commerce Platform" | withoutAppCode}
// Returns: "E-commerce Platform"
{"STANDALONE" | withoutAppCode}
// Returns: ""
{"API-003|Payment Gateway|Production|v2.0" | withoutAppCode}
// Returns: "Payment Gateway|Production|v2.0"
{application.full_name | withoutAppCode}
// Extracts application name without code
{"SYS-101|Authentication Service for Internal Users" | withoutAppCode}
// Returns: "Authentication Service for Internal Users"
  • 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
  • appCode - Gets the code portion before the pipe
  • split - 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.