Legacy Dev Forum Posts

 View Only

Sign Up

Find 5digit number in email body

  • 1.  Find 5digit number in email body

    Posted 06-05-2025 19:16

    Nico87ca | 2024-12-12 14:38:43 UTC | #1

    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


    system | 2025-01-12 14:39:03 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 30832