How to write all numbers retrieved from mail body into a text file/save all numbers into a variable?

Thanks in advance. :slight_smile:
These are numbers I am retrieving from mail Body!
1018751952
1018741953
1018867777

@anjasing,

If you’re able to get these numbers from mail body then you can create variable and store them.
Use Write Text File activity to save into txt file.

Use
SMTP-Save Mail Message
and you will get a string ->“YourString”
get_numbers_variable=System.Text.RegularExpressions.Regex.Matches(“YourString”,"(1018)+\d{6}")
nr1_var=get_numbers_variable(0).ToString
nr2_var=get_numbers_variable(1).ToString
nr3_var=get_numbers_variable(2).ToString

@anjasing - Are these connected in any way??

yes, they are!

if you can help me in creating the variable, and its storage