Can someone maybe help me how I can read every email in a specific folder in Outlook. In order to then copy something specific and paste it somewhere else.
For example, somewhere in the email there is always the number: xxxx and I only need the xxxx.
(repeat until there are no more emails there, it’s best to process one email first and then the next ones as there will be a process in between)
So how can I read the emails and only take the xxxx from them?
Get Outlook Mail Messages:
Configure the activity to connect to your Outlook account and select the folder.
For Each (email in retrievedEmails):
a. Get Email Properties:
- Use the “Get IMAP Email Properties” or “Get POP3 Email Properties” activity to access email properties.
b. Extract the “xxxx” value:
- Use string manipulation techniques to extract the specific information.
c. Store the extracted data in a variable.
d. Perform further processing (e.g., write data to a spreadsheet or perform calculations).
The loop will repeat for each email in the folder.
I always need something that comes after “Number1:” here. But it could be somewhere different every time and the numbers afterwards could be different.
I wanted to output this with MessageBox, previously I used GetText.
How would I have to write the “(?<=Number1:\s)+\d+” in MessageBox so that I can output “1234567”. I’m sorry that I don’t understand all of this straight away.
Hi, how can I save what is output in the message box as a variable and, for example, insert it somewhere else?
Unfortunately, simply saving it in Assign and having it output didn’t work.