EWA Posted August 20, 2024 Posted August 20, 2024 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.
Sam P Posted August 20, 2024 Posted August 20, 2024 I use this to remove spaces altogether but in theory you would just need to add the . in the Replace With field: (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)
EWA Posted August 20, 2024 Author Posted August 20, 2024 that's works a treat.. thank you so much Sam. 1
Jim Posted August 20, 2024 Posted August 20, 2024 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 1
EWA Posted August 20, 2024 Author Posted August 20, 2024 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..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now