Hi all - I am a citizen developer and new to UiPath. I’ve completed the basic trainings. I want to extract specific text from an email whose contents changes every week, but will always have the building name contained in the text string that i want.
For example, i want to only extract all of the text regarding Skytower below:
Walnut plaza 12/13/23 event to be discussed
Skytower 12/04/23 big event with 200 people
Skytower 12/13/2023 chairs and tables for 630 people and the CEO
1. Get Outlook Mail Messages
2. For Each Email in MailMessages
3. Assign: extractedText = System.Text.RegularExpressions.Regex.Match(Email.Body, "Skytower[^\r\n]*").Value
4. Log Message: "Extracted Text: " + extractedText
=> Use Get Outlook Mail Messages to retrieve the messages and store the output in a variable.
=> Run a For Each loop to iterate through list (MailMessages) variable.
=> Inside the loop, use assign activity and give below syntax:
str_Body= CurrentMail.Body.ToString
=> Use the below syntax in another assign activity: