Hello, I am trying to split a really long string and use the numerical value after a specific string. I tried using index but the values can change so it may not always be in the same place. I will post a portion of the String Array below (There are tons more of things before and after the portion that I am posting. I need the number value -300.00 that comes after the string “Penalty”. Thank you in advance.
It looks for the word Penalty and captures the numeric value inside fieldValue, so it doesn’t matter where it appears in the string.
If the string is always proper JSON, even better option is to deserialize it and directly read:
This looks like a json .
Use deserislise activity and store output in jsonObj
Then use assign as below :
penaltyValue = jsonObj(“Penalty”)(“fieldValue”).ToString