Gmail Automation Problem

Hello everybody, I´m new here and few days ago I download UiPath for my bachelor thesis. I just watched several videos about email automation with gmail. I have no errors but the attached documents will not be downloaded and stored in the folder.

I hope so much someone can help me.

1 Like

Please check if email has any attachments or not.
Usually save attachments will save the attached files into a given path.
Please give the existing file path.

If that doesn’t work debug and see why it is failing to save the attachments.

Regards,
Karthik Byggari

Hey @Fabio_Testai
Try to give full path of the folder in which u want to download the attachments and check.

Thanks.

It doesn´t work :frowning: i give the full path and the folder is still empty
Do you maybe have a possibility of remote acess? I habe no idea where the mistake is

Yes there is an email with attachement. What is debug? I´m sorry but I´m not yet fimiliar with UiPath.

Hey @Fabio_Testai,

In the subject you have wrote “Test” and in the if condition u have given “test”.
Give the proper keyword and check again.
This minor mistake maybe the problem.

Thanks.

2 Likes

Made a strange discovery. Have three emails with different subject. ‘‘test’’ and ‘‘2’’ are found and stored in the folder. ‘‘Test’’ but not. Do you know why?
All attechments are the same only the subject ist different. The first subject ist only with a capital T i don´t understand :smiley:

1 Like

Hey @Fabio_Testai
can u share the workflow if possible?
Just remove the credentials and share.

@Fabio_Testai

We can not expect that the sender fix the subject line (upper/lower case) same as we fixed in If Condition. So that we have to make it as dynamic as per the below.

item.Subject.Contains(UCase(“TEST”))

Its read the email subject then its converting it to uppercase and matching the subject with your Condition.

Happy automation !

Regards,
Srenivasan Kannan

How can I share it? Is a snap enough or is there another possibility?

Hi @Fabio_Testai,

You can attach your workflow here so we can help you. You can see the icon below whenever you reply to a message.

image

Thanks!

It doesn´t work :frowning:

I´m sorry but I only know how to upload a snip from the workflow. How can I upload the complete workflow?

Please find the attached workflow FYI.

Gmail_automation.zip (14.4 KB)

Regards,
Srenivasan Kannan

2 Likes

Like what I’ve said, click Reply then you can see the icons below.

image
Click this one image then choose From my device

image

then Upload

Hey thank u very much for your work!!! I really appreciate that :slight_smile: I have one more question ( i feel so sorry and stupid)
For every found email i have to klick ‘‘okay’’. Is there a possibility that the message box shows how much attachments are downloaded?

I have send me another mail with attachement and another subject. The robot download all attached documents, it ignores the ‘‘subject.contains()’’ part :smiley:

Yes, It’s possible. Please refer the below post from @Alex_Cross

Regards,
Srenivasan Kannan

@Fabio_Testai

Please add this Directory.GetFiles(FileAttachmentsPath).Count

where do I add this? Now I´m confused :smiley: Can u maybe add it to the file which you just sent me?