MailMessage - Save Attachments IMAP

Hello ,

I am trying to do an automatization that downloads the email attachments (PDF files ) from an email account using IMAP and I don’t understand what do I need to fill in the MailMessage field in the Save Attachments activity


Hi @Cris_Webs

First create an output variable in the Messages propertie of imap activity
image

Then use a for each, pass this variable and in the save attachment pass the currenItem like this
image

Regards

Hi @Cris_Webs

Use Currentitem.toString in the place of email.

Hope it helps!!

Hi @fernando_zuluaga ,
Thank you

What type of Variable should “currentItem” be?
I get this error in the save attachements activity “Argument ´Message´ BC30311: Value of type ´String´ cannot be converted to ´MailMessage´”

Hi @Cris_Webs

Try this Currentitem.toString in the place of email.

Hope it helps!!

Hi @pravallikapaluri ,

I don´t understand what you mean by that ? Can you please be more specific ? ( I am a beginner in this :blush: )

Thank you

@Cris_Webs
In the save attachments atachments activity you had given email right…In the Place of the email you try with currentitem.toString

Hope it helps!!
ThankYou

I get an error

@Cris_Webs
The Output of the IMAP is email
So,In the foreach loop use email variable in the list of items and use current item in the save attachments.

curent Item should be a variable and if yes what type ?

@Cris_Webs
1.Create a variable of IMAP activity output as MailMessages (Change Scope to the MainSequence in the variable Panel).
2.Pass the MailMessages in the for each list of items
3.In the save attachments use currentitem.

How do I set the variable type for MailMessage as List ? I don´t find that option in the list?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.