Hi,
I am trying to automate sending an email to different Org Codes within my organization based on the subject of the email coming in. For example if the Subject of the email contains Org code H45, I want it to send to the people from H45. If it contains B12, I want it to send to the people from B12 and so forth. There are about 30 Org codes so I don't think there is a way to use the Condition Action so I'm trying to use Switch and then use the function "contains" to find the organization code and trigger the email to the right place.
This is what I have for the contains function, but it's not working:
contains(triggerBody()?['Subject'], 'H45')
Is there a better way to do this? Or could someone help write the correct contains function?
Thank you! I am still very new to power automate.
