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
There maybe more elegant ways, but something like this:
local!split: fn!split(local!trimmed, " "),
local!union: fn!union(local!lower, local!lower),
concat(fn!proper(fv!item), " "),
concat(fv!item, " ")
hi stewart, is there an guide for fn! functions somewhere ? not all functions are available as fn! but is there any simple rule like all functions without a! or a page to explain them. Just curious....
Hi AKASH T,
can you try this one
a!localVariables( local!string:union(split(lower("Hello hello Hello there there past pastures")," "),split(lower("Hello hello Hello there there past pastures")," ")), substitute(tostring(local!string),";"," "))
There are a couple of resources I typically use:
In the expression designer interface you can access this list as follows:
There is also online documentation:
(if you're not on 21.1 then you can navigate to https://docs.appian.com/ and then choose your version)
Works well But the result will be displayed in lower case.
© 2023 Appian. All rights reserved.