Hello everyone,
I have a field with the following information:
User test example
I only need the first name.
How can I filter only the name “User”?
Would it be a split type transform?
Does anyone have an example to show me?
Hello everyone,
I have a field with the following information:
User test example
I only need the first name.
How can I filter only the name “User”?
Would it be a split type transform?
Does anyone have an example to show me?
{
"attributes": {
"input": "User test example",
"delimiter": " ",
"index": 0,
"throws": true // fail if input is null/empty
},
"type": "split",
"name": "First Name Split"
}
{
"type": "split",
"name": "Get First Name",
"attributes": {
"input": {
"type": "identityAttribute",
"attributes": {
"name": "yourFieldName"
}
},
"delimiter": " ",
"index": "0"
}
}
delimiter: " " splits the string by spaces.index: "0" gets the first item (i.e., “User”).Replace "yourFieldName" with the actual name of the identity attribute you’re splitting. Let me know if you want to extract it from a different source or in a rule.
Thank you
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.