Hi @MarcusD1
With the following expression you could check:
1) If From field length before '@' is 10 digits.
2) If this 10 digits are numbers, or at least, could be converted to integer value.
The expression is the following:
if(equals(length(substring(triggerOutputs()?['body/from'],0,indexOf(triggerOutputs()?['body/from'],'@'))),10),isInt(string(substring(triggerOutputs()?['body/from'],0,indexOf(triggerOutputs()?['body/from'],'@')))),false)
a) Get 10 first digits before '@':
substring(triggerOutputs()?['body/from'],0,indexOf(triggerOutputs()?['body/from'],'@'))
b) Check if it is 10 digits:
equals(length(substring(triggerOutputs()?['body/from'],0,indexOf(triggerOutputs()?['body/from'],'@'))),10)
c) Check if it's an integer:
isInt(string(substring(triggerOutputs()?['body/from'],0,indexOf(triggerOutputs()?['body/from'],'@'))))
Mixing all expressions you can get that.
Hope that helps!
Ferran