Forum Discussion
Issues with Flow - Inbox Triage (Check for list of codes from subject field > Actions)
Good morning, I'm hoping I can get some help on my flow.
Basically, I have a sharepoint list that contains 3 columns. A title, codes and a description.
When a new email arrives in shared inbox, I want to get the emails, get the sharepoint list items and then use a condition to check the subject line within the email for any matches within the items from the sharepoint list using the column titled 'Code' - The instruction is 'Contains' because in general, all of the emails have a lengthy subject line, however within that subject line will be the 'Code' (usually a 3 letter acronym, but always consistent with the codes within the list)
If one of the subject lines contains a 'code' within the list, then do the following actions -
Flag the email
Move the email to another folder within the inbox
Send a message via a group chat within teams with some basic information including the subject line of the email, the title, code and description columns of the item its matched against.
My current issue - Despite using the option 'Contains' within the condition, it appears the Condition will only trigger if an email is sent with just the 3 letter code in the subject line. If I were to have a subject such as 'Hello my email is ABC' (abc being the code) - the condition will not trigger. But if I just use a subject line of 'ABC' then it triggers. My flow is below -