Show / Hide Table of Contents

    String functions

    The following string functions are supported in a calling list field

    What is a calling list field

    Calling list fields are fields that carry information about the incoming message, this can be

    • Customer record information in case the incoming message is an outbound call (such as ORDERNO, ACCOUNT, FIRSTNAME, LASTNAME, etc.)
    • Incoming call information (and UUI) in case of the incoming message is an inbound call (ALERTING, DNIS, ANI, etc.)
    • Custom fields that are delivered with a web service call
    • Debug button defined fields

    Calling list fields always have the following format: <fieldname> e.g. <ORDERNO>

    Where are the calling list fields used

    The calling list fields are used in the:

    - Rules match field values

    - Rule information message field

    - Popup action

    - Button action

    Supported string functions

    The following string functions are supported by the calling list fields

    Exists

    Determines if the call list value is present.

    Syntax: <CalllistField>.Exists()

    IndexOf

    Reports the index of the first occurrence of the specified character array in this instance. The search starts at a specified character position.

    Syntax: <CalllistField>.IndexOf(String value, integer startindex)

    Parameters:

    value -The String to seek.

    startIndex -The search starting position.

    Insert

    Inserts a specified instance of string at a specified index position in this instance.

    Syntax: <CalllistField>.Insert(String value, integer startindex)

    Parameters:

    value -The String to insert.

    startIndex -The index position of the insertion.

    Length

    Gets the number of characters in this instance.

    Syntax: <CalllistField>.Length()

    Remove

    Deletes a specified number of characters from this instance beginning at a specified position

    Syntax: <CalllistField>.Remove(integer startindex)

    Parameters:

    startindex – The position in this instance to begin deleting characters

    Replace

    Replaces all occurrences of a specified Unicode character or String in this instance, with another specified Unicode character or String.

    Syntax: <CalllistField>.Replace(String oldValue, String newValue)

    Parameters:

    oldValue - A String to be replaced.

    newValue - A String to replace all occurrences of oldValue.

    Substring

    Retrieves a substring from this instance.

    Syntax: <CalllistField>.Substring(integer startindex, integer length)

    Parameters:

    startindex - The index of the start of the substring

    length - The number of characters in the substring

    Sorry, your browser does not support inline SVG. article updatedarticle updated6/23/2020 9:06:57 AM (UTC)6/23/2020 9:06:57 AM (UTC)
    Feedback     Back to top Copyright © Geomant