Downloading the attachment if there is no attachment in the email

still its saving bro.

1 Like


I searched here
It’s searching the excel file bro not the activity

Hi @balkishan,
According to your description, where there is no attachment with the mail your BOT is creating an excel sheet. So, please have a look on the workflow present in the file given below-
Forum(balkishan).zip (12.0 KB)
Hope it will work.

Thanks & Regards,
Apurba

1 Like

item.Attachments.Count>0 use this condition in foreach it was working and i tried also

If u have used application scope for that excel then it will create as new file if there is no excel present
Just run save attachments part from project

@pradeepRPA @ImPratham45 @lakshman @Gluon

Using this condition if you see right means else part is executing when there is no attachment in the email, but still it’s saving the blank file. (Strange)


image

But still it’s downloading the attachment how?

1 Like

can u send me the xmal
or else just make small workflow for retreiving and then saving attachm,ents part

1 Like

sure Thanks, Let me try this also

i think you are using save attachments activity some where please check your code or send XML file

1 Like

Individual workflow is working fine bro. But when I invoking this in the complete project then only it’s creating the excel file.

1 Like

Hi @balkishan,
Yea, please try. Please put your ‘folder path’ at the required field in ‘Save Attachment’ activity, as I have set it as ‘Your Folder Path’.

Thanks & Regards,
Apurba

1 Like

Buddy
The issue is not with the condition that you have mentioned
— the issue is the excel file is getting created somewhere we need to find where it is
—please check where we have used write range activity with that file name InvoiceDate.xlsx
— if we find that and disable it you are done

Simple isn’t it
Cheers @balkishan

1 Like

then debug it upto that for each loop
then check is that file is created or not
I think file is created because u have use application scope with that file name somewhere thats y its crating it

1 Like