Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

I want to save mail attachments if and only if it is .docx format.

Hi all,


I want to save mail attachments if and only if it is .docx format. Even I want to check number of attachments present in a mail.

Please guide me on this.


Thanks in advance.


Best Answer

Hi,


You would first need to download the attachments in order to check the type of the file. If the type is not .docx then delete the file:



ADMIN
Answer

Hi,


You would first need to download the attachments in order to check the type of the file. If the type is not .docx then delete the file:


Hi,


Thanks for your quick response.


Can we check the attachment count in a mail?


ADMIN

Yes, the Display Message action does exactly that, I just used that action to demonstrate the syntax you would need to use.

Thanks for quick response..!!

Hi,

Specifically I want to check if attachment is in:-

If %attachment.extension% contains

.docx or .jpeg or .pdf 

then go for next process

else 

end


Can we write above OR conditions in IF statement? 


Please reply on this.

ADMIN

You can use OR condition in IF statement, yes. Please have a look at the following:

https://support.softomotive.com/support/discussions/topics/35000006489

Login or Signup to post a comment