Output option based on what email address
if(
contains(triggerOutputs()?['headers']?['From'], 'domain1.com'),
'Output 1',
if(
contains(triggerOutputs()?['headers']?['From'], 'domain2.com'),
'Output 2',
if(
contains(triggerOutputs()?['headers']?['From'], 'domain3.com'),
'Output 3',
if(
contains(triggerOutputs()?['headers']?['From'], 'domain4.com'),
'Output 4',
if(
contains(triggerOutputs()?['headers']?['From'], 'domain5.com'),
'Output 5',
''
)
)
)
)
)
No Comments