String Replace Issue
Posted: Mon Jan 02, 2023 6:36 pm
Hello Switch World -
To keep this simple, I'm trying to make a URL that is web safe. So I need to remove the spaces and replace them with %20.
The URL is built from various privatedata values and some static info.. Only one privatedata value will ever contain spaces, "description" this is the string I need to change
After searching the forums, String Replace seemed to be the easy solution, however I don't get any results even when trying to replace a word such as "START" with "DONE"
My process and how String Replace is setup:
I'm looking to change the value in privatedata key "description". ( in my test the value is START this test )
Mode: Privat Data
Data: [Job.PrivateData:Key="description"
Separator: =
Strings: START=DONE
Global: Yes
Ignore case: Yes
The result is the same "START this test" vs what it should be "DONE this test" as the new privatedata.
Am I missing something or is there another way?
To keep this simple, I'm trying to make a URL that is web safe. So I need to remove the spaces and replace them with %20.
The URL is built from various privatedata values and some static info.. Only one privatedata value will ever contain spaces, "description" this is the string I need to change
After searching the forums, String Replace seemed to be the easy solution, however I don't get any results even when trying to replace a word such as "START" with "DONE"
My process and how String Replace is setup:
I'm looking to change the value in privatedata key "description". ( in my test the value is START this test )
Mode: Privat Data
Data: [Job.PrivateData:Key="description"
Separator: =
Strings: START=DONE
Global: Yes
Ignore case: Yes
The result is the same "START this test" vs what it should be "DONE this test" as the new privatedata.
Am I missing something or is there another way?