Remove the duplicate values from a text rule input?

Certified Senior Developer

My requirement is to remove the duplicate values from a rule input of type text. Here is a sample input and output.

Input: Hello hello Hello there there past pastures

Output: Hello there past pastures

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Stewart Burchell

    i was looking for online documentation :) 
    I know how to search for specific function at the documentation (appian.com). My question targeted towards fn! functions specifically. we have a list of several functions provided by appian. Are all of them available as fn!

    functions?

    my code would have looked something like this:

     

    a!localVariables(
      local!trimmed: trim(ri!inputString),
      local!split: split(local!trimmed, " "),
      local!lower: lower(local!split),
      local!union: union(local!lower, local!lower),
      local!result: a!forEach(
        items: local!union,
        expression: if(
          fv!isFirst,
          concat(proper(fv!item), " "),
          concat(fv!item, " ")
        )
      ),
      concat(local!result)
    )

Children
No Data