Microflow Decision Node Expression Error

0
Hey everyone!   Does anyone know how to fix the following error for the decision node in Microflows:   It appears to be a syntax error for the first line: "The '-' part is incomplete or incorrect. You could use here: parenthesis."   See image below:     Thanks! -Aidan
asked
3 answers
2

Hi Aiden,

 

In Mendix we have only substring function available, 

but I understand you want to restrict email domain, you may explore Regular Expressions in Mendix. While implementing you have any doubt please refer this communication also E-Mail Regex in Microflow

 

Hope it helps!

Thanks & Regards,

Manikandan K

answered
1

Hi Aidan,

try to use

substringAfter instead of substring-after

answered
1

Aidan,

A few different ways you could test for one of the domains in your list:

contains($EmailAddress,'@ymail.com') or
endsWith($EmailAddress,'@ymail.com') or
substring($EmailAddress,find($EmailAddress,'@')) = 'ymail.com'

Maybe these will give you some ideas about how to test for specific email domains.

Mike

answered