Forum Discussion
You can still use Set Variable Value, but set the Mode to Code Expression. You'll have to come up with a code expression to split the string.
Split it around the "." character, then grab the last element, split it around underscores and grab the first element. That's your sales ID
You could also grab it from earlier in the string with a different split.
You'll also have to make sure to use a project variable so its value doesn't get lost (I am not sure if variables on other keyword tests go out of scope)
Thank you for your inputs. I am halfway through and successfully able to split the data as needed and captured the order id.
However, I am missing how to call this function at the step level wherever the OrderID need to be called.
Could you please advise what should be the 'Operation' and the 'Value' at the step level?
Related Content
- 2 years ago
- 5 years ago
- 9 months ago
- 8 years ago
Recent Discussions
- 6 hours ago
- 4 days ago