<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007geUeVCAUOkta Identity EngineWorkflowsAnswered2025-03-30T09:09:49.000Z2022-05-26T20:15:08.000Z2022-06-11T06:25:39.000Z

ih5uc (ih5uc) asked a question.

Find empty space in name

I have a Okta workflow which is creating an email address based on certain conditions. Now I want to be able to check if the firstname or the last name has double words and then ignore the empty space and create an email handler.

Eg: Lastname= Test user / Mary Jane the email handler must be testuser@domain.com and not test user@domain.com which is not a recognized email address.

Which action card can help me find the empty space and ignore it to create a loginname?

Thank you.


  • Paul S. (Okta, Inc.)

    Hello @ih5uc (ih5uc)​  Thank you for reaching out to our Community!

     

    Please take a look at the screenshot below, which will provide you with that needs to be done to achieve this:

    Screenshot 2022-05-27 at 21.32.45Hope this helps!

    Expand Post
  • TimL.58332 (Workflows)

    To help make what Paul performed clear. They added a "space" in look for. Additionally, you could leverage text "Replace Patterns" and utilize regex. I also recommend always running text inputs like this through the gambit of trim+to lower so the data is normalized. "Trim" will remove whitespace/return carriages on the ends of a text input. "To Lower" will change all characters to lower case. So some input like MyNaMeIsTiM will be mynameistim. Essentially, makes working with the strings easier later since there will be consistent formatting.

     

    Here is an example:

     

    imageimage

    Expand Post
  • PrajnaP.47699 (Customer)

    Thank you @Paul S. (Okta, Inc.)​ and @TimL.58332 (Workflows)​ for your help. I was able to use Replace Patterns action set and check for spaces in my variable.

This question is closed.
Loading
Find empty space in name