You can use a calculation step in Blue Prism to achieve this, and you almost have it right.
I assume you have the entire string including the order reference number, loaded to a dataitem
. Let's call this dataitem [orderReference]
Right([orderReference],3)
will then give you the last three characters in the string (which will be the numbers).
This only works if the order reference is always three digits long. Over time the order references will probably increase to be four or five digits, and you will still only get the last three.
To accomodate for this, you can use Len([orderReference])
to get the length of the entire string. Deduct 42 from the length (There's 42 characters before the numbers - I assume there's a space after the : otherwise it would be 41).
Simply use that number instead of 3 in the Right function.
Right([orderReference],Len([orderReference])-42)