Get outlook Message Activity property(Filter) error

Here am using get outlook message activity to download attachment based on subject.
I am having three kinds of subject, like :
subject 1 = “abc”
subject 2 = “cde”
subject 3 = “fgh”
i want to pass these subject as variable in get outlook message activity , in property filter
using or operator.
How to pass multiple variable in filter using or operator

1 Like

@Bakia_Murugesan Please try like below

  "[Subject]='abc' OR [Subject]='cde' OR [Subject]='fgh'"
3 Likes

Thank you very much for your kind reply. Its working.

1 Like

@Bakia_Murugesan Your welcome :slightly_smiling_face:

Do u have any idea about saving attachment to specified path.
I am having three types of attachment like pdf , csv and csv.

Hey @Bakia_Murugesan,

You can save the attachments in specified folders as per the need.You just need to pass the folder path in the save attachment activity.You can create the dynamic path on the basis of file type if you want and use that further.

1 Like

ya i have tried this.

how can we specify where to save particular file type to particular path

You need to check the file on the basis of extension:

var extension=Path.getExtension(“File name”)
if(extension.equals(".pdf"))
{
var path=“D:/PDF”
pass this path inside the save attachment activity
}

if(extension.equals(".csv"))
{
var path=“D:/CSV”
pass this path inside the save attachment activity

}

1 Like

I am having three types like pdf , csv, csv how to specifiy it

Hey @Bakia_Murugesan,

Use save attachment activity and save all the attachments to a temporary path.

Once you have saved the attachments to a physical location then follow the steps below;

@Bakia_Murugesan Please check below screenshot. It will save all type of files in specified path

1 Like

Thank you @Manjuts90 …I have got solution

1 Like