Email Attachment count getting double

Dear Team,

Can you please anyone help out to resolve the issue. whenever getting an attachment from an email, it’s getting doubled as email count.

Ex- If there is 3 email with each attachment when moving to the folder it’s increasing to 9.
If there is 2 email with each attachment when moving to the folder it’s increasing to 4.

I need to increase the count to avoid overriding the files.

path.Combine(Config(“Input_POAttachment”).ToString,path.GetFileNameWithoutExtension(attach)+count.ToString+path.GetExtension(attach))

1 Like

Hey @jaffer_sadiq

What I understood is like you want to keep track of a count for every email to do something with its attachments.

So that is correct, then please you can utilise the ready output of the for-each activity which gives you an index integer output which can be used as count required for you.

If the requirement is something else, kindly if you can explain a bit more.

Thanks
#nK