Hi,
I'm trying to execute a search in the body of an email for the first 5 digit number encountered as this is probably the client id we're looking for.
The problem is that it's a freeform text so there is no specific word or standard in the email that would help me.
I was wondering if someone would have a clue as to how I could do this.
My issue is kind of similar to this:
Get the Case ID From the body of an email using substring - Genesys Cloud Applications / Architect - Genesys Cloud Developer Forum
but there is no trigger word that I can look for.
I was thinking to create a loop that would look for any first digit (0-9) and then loop and see if the next character is another digit, and so on 4 times.. But it doesn't work..
Any idea?
Thanks,
Nico