I need some help. I have created a process(print screen below) that finds unread emails, reads the body of email, Parse some items from body of emails. I set a condition that separates “good emails” from “bad emails”.
What I’m looking for at the end of the entire process I need to identify how many total unread emails were in the inbox, and out of those unread emails how many were “good” and how many were “bad”. I need the output to state something similar below. Please note that this output will be sent out to different parties.
On “date” there were a total of 10 unread emails. 5 of those were “good emails”. 5 of those were "bad. Process was started at “time” and ended at "time
Does anyone have any ideas how this can be accomplish? Any assistance will be appreciated.
What’s the condition to make it good or bad? You can use a LINQ expression to separate the list of mailmessages from the Get Outlook Mail Messages output. The below expression will return an integer representing the total messages that meet the criteria where subject = “good email”
For the total unread messages, check the box for the property in Get Outlook messages called OnlyUnreadMessages. Then you can use messages.count
For the start and end time, create a variable called startTime and endTime, both of type System.dateTime. Then use an assign activity at the beginning of the workflow, setting startTime = now. Do the same using endTime and place at the end of the workflow