Find value from collection in Email Body

MoDCore

New Member
Hello All,

I am trying to categorise emails based on key words from inside the email body.

If I hardcode the values it is looking for then the process works as expected.

80nDzvWnRYmwvQGlhyIQ_temp.png


Now the next step is to have the keywords which define a category in a locally managed file.

I would of thought putting the list of key words into a collection.

sCOlJWCAQYWaDHerIQhg_temp.png

To then add that collection to my choice stage

YDByp9fSh2Y2YYTEXi1g_temp.png


But this isnt working as expected.

There is 7 categories, with undefined number of key words (as this is likely to gorw as we progress over time).

Any suggestions or guideance on this would be great.

Thanks
 

gil.silva

Active Member
Can you describe the problem?
Your approach seems correct, you just need to insert a Loop with the calculation stage inside and a decision stage to know if the output is True/False
 

pruthvia

New Member
YDByp9fSh2Y2YYTEXi1g_temp.png


The expression given above in calculation stage needs modification.

In current expression- you have directly given KeyWords.LA Acceptance which is not a correct method of accessing a collection value.

solution - use a collection manipulation activity called "collection contains value" to check if collection you created contains value you get from email.
 

MoDCore

New Member
This is now all working as expected.

When I get onto the BOT machine, I will post the solution.

Thank you all
 
Top