Send Email with Multiple attachment

I’m using send outlook mail message activity to send a mail.In that mail i have to attach two excel file so how can i attach multiple file in it?

@Anil_G @sangeethaneelavannan1

@pravin_bindage

In attachment collection you can attach any number of resources…

Instead of one argument create two and two and assign two variables

Cheers

Hi,

pls refer below screenshot:

in the attachments property, you can provide multiple attachments paths.

2 Likes

I have file paths in config file.I wants to take that path.i dont wants to hardcode the path so how can i do?

just provide keys from config instead of “attachment_Path_1” and “attachment_Path_2”

@pravin_bindage

Instead of file give the variables pr the config variable

Cheers



Not working

HI @pravin_bindage

You can give multiple attachment in the AttachmentsCollection field in the properties of send outlook mail activity

Pass the file path as string of array

{"File1 full path.xlsx","File2 Full Path.xlsx"}

Regards
Sudharsan

Print and check if In_Config(“Path_LogFile”).Tostring and In_Config(“Path_TrackerFile”).Tostring returning anything @pravin_bindage

If your attachments are in a folder you can assign a variable (Type: Array of string) as below. Assuming “Sales Folder” is your folder name and the attachment type is “xlsx”.

Then use the variable in the Attachment Collection as below.

@pravin_bindage

As per error your input variables are null

I guess you ran this file directly …config is empty

Cheers

yes you are right

@pravin_bindage

To check run the initial all settings workflow at the start…so that config is populated.make sure in import arguments you link the config file

This would solve the issue

Cheers

Now its working Thanks to all.

1 Like

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