06-13-2017 06:01 PM
Hello!
So I am trying to write a VI that will pull emails from an inbox in Outlook and get the subject and message from each email. My dilemma is that I don't want to pull all emails from the inbox each time I run the VI; Instead, I would like to store the date and time that the VI was last ran or of the latest email it pulled and then use that for the next time it is ran to determine what emails are "new" and only pull those. Is this possible?
Solved! Go to Solution.
06-13-2017 10:03 PM
06-14-2017 10:00 AM
I see you posted a picture, but its not showing up.
06-14-2017 06:01 PM
I took an example from this thread and added checking of what time it is. You could do something like this. Just go through each email, check what time it was created, and when you get to the time you saved that you last checked, then stop.
--Hope
06-15-2017 06:40 AM
You could log a timestamp to a file every time you run the application. Check that file and you know the time of the last execution.
06-15-2017 11:31 AM
Awesome I will give this a try! Thank you!
06-15-2017 01:29 PM
Worked like a charm Hope thanks! W_Smith thanks for the advice! I was able to save the time stamp to a file to use each time I run the program to get the last time ran so that solves all my questions! Thanks again you two!
06-15-2017 02:41 PM
Awesome. Glad I could help. Best regards!