Report templatesFunctions

withoutAppCode

Extract everything after the application code from a pipe-delimited string

Usage

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

{input | withoutAppCode}

Parameters

  • input (string): A pipe-delimited string (e.g., "APP001|Application Name")

Returns

  • The trimmed content after the first pipe character
  • Empty string if no pipe character is found

Examples

Basic extraction

{"APP001|Customer Portal" | withoutAppCode}
// Returns: "Customer Portal"

With spaces

{"WEB-002 | E-commerce Platform" | withoutAppCode}
// Returns: "E-commerce Platform"

No pipe character

{"STANDALONE" | withoutAppCode}
// Returns: ""

Multiple pipes preserved

{"API-003|Payment Gateway|Production|v2.0" | withoutAppCode}
// Returns: "Payment Gateway|Production|v2.0"

Application names

{application.full_name | withoutAppCode}
// Extracts application name without code

System descriptions

{"SYS-101|Authentication Service for Internal Users" | withoutAppCode}
// Returns: "Authentication Service for Internal Users"

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
  • appCode - Gets the code portion before the pipe
  • split - More general splitting function with customizable delimiter

Note

This function preserves multiple pipe characters after the first one, joining them back together. This is useful when the description itself contains pipe characters.