AngelRodriguez
5 years agoQrew Assistant Captain
Pipelines and Regex
I'm currently working on a Pipeline to automate our in-house IT Help Desk, but I'm running into issues with the "matches regex" option in the Outlook Channel "Search Emails" step.
What I'm trying to do is find a sequence like "Ticket #20200618-1507-RM-74". I created a regular expression that I would normally add to a function in JavaScript like so:
When I run the Pipeline I get a "Found no Emails" response in the "Running Pipeline" window. The email is in the inbox with that exact pattern, but Pipelines does not recognize my regex pattern.
Thanks!
------------------------------
AR
------------------------------
What I'm trying to do is find a sequence like "Ticket #20200618-1507-RM-74". I created a regular expression that I would normally add to a function in JavaScript like so:
/Ticket #\d{8}-\d{4}-\w{2}-\d{2}/g
I'm trying to catch a pattern in the subject line "Ticket" & # & 8 digits & - & 4 digits & - & 2 letters & - & 2 digits" with the global flag appended to the end. It works in JavaScript, but it seems as if Pipelines doesn't recognize this pattern.
Is there a a specific way of writing regex with Pipelines or am I completely off track with the "matches regex" option in Pipelines for the Outlook "Search Emails" option?
When I run the Pipeline I get a "Found no Emails" response in the "Running Pipeline" window. The email is in the inbox with that exact pattern, but Pipelines does not recognize my regex pattern.
Thanks!
------------------------------
AR
------------------------------