This code returns promise instead of result:
{
"Name": "someExample",
"CreationDate": "2022-5-23",
"Commands": [
{
"Command": "store",
"Target": "123some123",
"Value": "someExample",
"Description": ""
},
{
"Command": "echo",
"Target": "${someExample}",
"Value": "",
"Description": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "var someExample = ${someExample};\n\nsomeExample = someExample.replace(/\\D/g, '');\n\nreturn someExample;",
"Value": "someExample",
"Description": ""
},
{
"Command": "echo",
"Target": "${someExample}",
"Value": "",
"Description": ""
}
]
}
In 6.2.8 result is:
Blockquote
123some123
123123
In 7.0.11 result is:
Blockquote
123some123
[object Promise]
If I didn’t use js replace function then result is string instead of promise.