I would like to create a predefined filter where i can able to reuse the filter in many workflows with different values.
For ex: In first workflow, condition is email domain = gmail.com and country = USA and in second workflow, condition is email domain = yahoo.com and country = HK.
Is that possible to reuse the one filter in many places? If so, can we able to achieve the above scenario. Please help me to get this solved and guide me to achieve the same.
Which version of Adobe platform are you working at?
I haven't worked on the standard version with this, but on AC Classic you will have a folder for the predefined filters in your three structure (where you will be able to create subfolders) where you can place these filters to be reused in your workflows.
See AC classic documentation on the subject - Creating predefined filters
Also found this documentation on AC standard Adobe Campaign Help | Step 4: Define filters
Sounds like you want One predefined filter, and pass different values into that filter, for each of the workflows you insert it into.
A good idea is to have these values shown in your log, so you have an overview of these are being set correct
Yes you are right,
Even i have tried this solution and its working fine for few cases.
But my concern is to use this filter in cell activity where i may need to pass the different values for each of the subset in the cell.
Is that possible to pass the different values for each of the subset where the same filter has been used in all the subsets?
Sorry for the delay on my answer,
I'm afraid there is no possible way to pass different values in for the same parameters to be used in the several filters.
To do what you need to be using it for, you can duplicate the filter, and set the parameters variables with a numeration eg.
Filter1: emailDomain1 and city1
Filter2: emailDomain2 and city2
Filter3: emailDomain3 and city3
Then in your WF you will set the different parameter values from your script, just like when you had one filter with parameters.
I know that you were looking for a way to only use the single filter to avoid the duplicates, but I'm afraid there is no possible solution for this to work as you need it to.