RonTon
March 7, 2022, 10:49pm
1
I have this code snippet:
"Command": "store",
"Target": "${!COL1}",
"Value": "!csvLine",
The value of !COL1 is in the format SKU #111-0627
I want to extract the numbers after the #
I have looked in the DOCs for info on the syntax for split and trim and have found nothing.
Thanks
{
"Name": "TEST",
"CreationDate": "2022-3-8",
"Commands": [
{
"Command": "store",
"Target": "#111-0627",
"Value": "TEST",
"Description": ""
},
{
"Command": "echo",
"Target": "${TEST}",
"Value": "red",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return ${TEST}.replace('#', '');",
"Value": "TEST",
"Description": ""
},
{
"Command": "echo",
"Target": "${TEST}",
"Value": "green",
"Description": ""
}
]
}
1 Like
RonTon
March 8, 2022, 3:16pm
3
Perfect, just what I needed.
Thanks