I am trying to process all unread emails in my outlook inbox. How can I ensure that only one email is getting processed at any one time? I would like emails to get fully processed before processing the next unread email. See PDF attachment for a pictorial diagram of intended flow.
I’ve attached my project so far. Any assistance would be much appreciated.
Thanks for your speedy response. In my attached project I have already called the messages variable in my main for each step - process unread emails. Is this what you were getting at? If so I’ve probably mucked it up
Thanks for your response once again. I have removed the self loops but I’m finding that UI Path does not consistently follow my flow:
Identify unread mail
Identify if mail has an attachment - if no attachment go down no attachment path and perform steps 4 and 5 below.
Identify if mail has a PDF attachment - if not PDF go down no PDF path and perform steps 4 and 5 below.
Message box pop up
Move processed mail to different folder
Sometimes the processed mail has been moved before the message box pop up step which is proving to me that UI path is not processing one mail at a time. Is there anyway to control the flow to perform the steps in the order defined every time?
I’ve attached a document which details the activity of process unread emails. Please let me know if I’ve missed any detail. I’m now encountering a problem where in my non-PDF email workflow path the processed email is getting duplicated
I think my workflow is very similar to yours. I’ve taken out the open outlook and search for unread email steps - they were included because I didn’t know any better
I don’t think there is much processing in non pdf path. But I would suggest that you use debug mode to see why the mails are being duplicated. One of the reason could be you have used parallel for some processing. But that’s just a guess. Debug it step by step to find out the details.
Just further to my duplicating issue I’ve noticed that the attachment in the problem email is embedded. If you think I should treat this as a seperate issue I will start a new post.
Yeah I guess check existing posts on forums. Probably you can read the body and try to retrieve the image. But I am not much aware of that. Let me know if the previous issue got resolved or not