none
Usin ReplaceString function inside Value Expression RRS feed

  • Question

  • Hello!

    I am trying to replace one specific string inside the Update Resource activity in Value Expression field.

    At the moment i have there:

    Value expression: [//Delta/ExplicitMember/Added/Company]

    Target: [//WorkflowData/CompanyX]


    One of the Company name we have is very long, let's say "Very Long Company Field" and i want to rename it to "VLCF".

    Can i do this inside the Value Expression field somehow with IIF and ReplaceString functions ? What would be the correct syntax for this ?

    Thursday, February 14, 2019 3:16 PM

All replies

  • You'll need to write some crafty regex that you can use in RegexReplace function.
    Friday, February 15, 2019 5:45 PM
    Owner
  • Expression "\B[a-zA-Z0-9]" should mark all characters except first character in each word:

    RegexReplace([//Target/Company],"\B[a-zA-Z0-9]","")

    • Proposed as answer by Fredrik Melby Thursday, April 11, 2019 9:48 AM
    Tuesday, March 26, 2019 9:45 AM