<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
0D54z00006yOtcjCACOkta Classic EngineUniversal DirectoryAnswered2024-04-16T10:42:12.000Z2021-05-14T12:02:37.000Z2021-05-20T17:11:06.000Z

0eh4p (0eh4p) asked a question.

Trim in expression language

Hello,

We receive the nickname, prefix and birthname of an employee from our HR-system, which is the source for the Okta identities. When an employee has a partner, the prefix and the partner birthname is also provided. And a field which indicates how the employee wants to be addressed as name. They have 4 options:

  1. BirthName
  2. Partner BirthName - BirthName
  3. Partner BirthName
  4. BirthName - Partner BirthName

In Okta I want to compose the prefered name, but sometimes the names in the source have trailing spaces (and sometimes also heading spaces). How can I remove those spaces? I know there is function String.RemoveSpaces, but this also removes the spaces between double nicknames like "Bob John".

Thanks in advance

Kind regards, Eric


  • Hello Eric,

     

    In this case, it might be best to look at how this could be done through workflows instead of an expression language.

     

    The expression language would have to take into account so many variables and using workflows we would be able to populate the values into a workflows table then massage the data as needed and output when done.

     

    Still would have to look at how to handle special situations where the user is deciding preferred name or what unique value to key off of.

     

    I would recommend opening a Support case and this may also involve Professional Services if the workflow use case and requirements are too demanding for Support to work through.

     

    I hope this helps.

     

    Michael Hendrickson

    Senior Tier 2 Technical Support Engineer

    Okta Global Customer Care

    Expand Post
This question is closed.
Loading
Trim in expression language