The use case I want to develop is
1 Open outlook and go to "RBT "
2 Open the first unread message and check if a pdf attached
3 If yes, then download it in a local folder, If not , move file to "already treated " folder.
4 Send email to customer to notify that his email has been taken into account
I am facing some problems…
You will fin herewith attached an image to show you an example of the problem
Fine now worries
Hope these steps could help you resolve this
—use a get outlook mail activity and get the output with a variable of type list of mailmessages I.e., System.Collections.Generic.List(of mailmessages)
with a variable named out_nailmessage
—now use a for each loop activity and pass the above variable out_mailmessage as input (the one you asked what to pass in expression, just mention the output variable name of the get outlook mail activity) and change the type argument property in the property panel of For each loop as mailmessage
-inside this as you have used in a if condition like Mail.Attachments.Any is correct
And if this condition passes it will go to THEN part where we can include the save attachment activity and mention the mail as mail (as this the variable that has the mailmessage obtained from the for each loop) and mention the folder path where you want to save the file
—after this in the THEN part itself we can use a send outlook mail Activity stating that “the mail is acknowledged” in the body of the mail.
Simple isn’t it
Hope this would help you
Kindly try this and let know for any queries or clarifications
You were almost done
Fine this looks like issue us with the folder mentioned in the property
Kindly mention the folder as “Inbox\RBT”
If RBT is a subfolder
Or can I have a view in the property panel of get outlook mail activity if possible