Jump to content

Recommended Posts

Posted

I'm hoping this is a very simple question.

I want to replace a space in a string with a "."  The sting is a custom field which has first name and Last Name and I need it to be firstname.lastname

 

Find / \s/

replace with "."

I tried using the string utility as well as adding the .replace statement  &[global["flowcode"]["description"].replace(/\s/g, ".")]and writing it to a custom field but it doesn't seem to work.

Posted

I use this to remove spaces altogether but in theory you would just need to add the . in the Replace With field:
image.png.20322381fd0f9a70b1dd134393a126c7.png

(note I added the word Spaces to the end of the Result Reference as I have a number of these nodes doing different things.  You might not need to do that)

Posted

as @Sam P has shown, 

One thing I would add as well if you don't already do this. The little annoying tasks like this I will create an auto task for to test and a button to trigger specific to what I want to diagnose\ test, that way I don't have to keep logging new requests 

 

replace-test.draft.bpm.txt

  • Like 1
Posted
2 hours ago, Jim said:

as @Sam P has shown, 

One thing I would add as well if you don't already do this. The little annoying tasks like this I will create an auto task for to test and a button to trigger specific to what I want to diagnose\ test, that way I don't have to keep logging new requests 

 

replace-test.draft.bpm.txt 39.75 kB · 1 download

Thank you Jim, Yes.. have been using AutoTask for Stings..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...