Send list tof Attachments to Outlook

Hi,

I want to send some attachments in a folder. I created a list to get all the files in the folder and with a for loop, I can read the files. However, I am NOT able to attach the files.

image

Please help! Thanks!

@Yudhisteer_Chintaram1

Could you share the properties panel and the full expression used to get the files?

Cheers

Hi @rikulsilva

Here it is:

@Yudhisteer_Chintaram1

Can you check if the directory.getfiles is getting any files…

Better log them and check

Cheers

@Anil_G

Yes

Output:
image

@Yudhisteer_Chintaram1

Can you try changing the mail activities

Ideally in attachmentcollection you should see the type as ienumerable but it shows list with a comma too…something looks different there.

Cheers

@Anil_G

I should change it to what?

@Yudhisteer_Chintaram1

Try to change version from manage packages to any other version and see

Also better to remove and re add a new activity

Cheers

@Anil_G

I try delete and re-add but still has this:

Do you have the comma on your side?

@Yudhisteer_Chintaram1

No

image

that is the reason i am asking you to change the version of mail activities package

cheers

Hi @Yudhisteer_Chintaram1

Try just remove .ToList from your expression and change the type to array of string

Try again

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