Hi all
Obligatory Warning: I’m new to PowerShell, and programming in general.
I’m attempting to automate a process in work, and trying to ‘plan’ it first and so, part of what I’m trying to understand first are the steps required in each stage of the process, and naturally, if PS is the appropriate tool for it.
With regards to my script, in a nutshell, I’d like it to:
- check an Outlook folder on a regular basis (i.e. hourly)
- for any emails found, I want to extract 2/3 items of information
- I then want the extracted data to be sorted and split so that it can be emailed to different people (who it is emailed to is dependent on a piece of the extracted data (i.e. a process name))
- I then want the original email marked as ‘read’ and moved to another folder within Outlook
What I would like to know is:
-
Is this all possible within PowerShell?
-
In order to read/parse the emails, will I first need to save them all as a text file somewhere or is that unnecessary?
-
Do I need to take into account ‘access’ i.e. how does the script access my emails?
-
Broadly speaking, is this a “good” approach or am I missing something?
Thanks all
Carl