Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Require inputs on preprocessing script to fetch data from Workday

sairamya15
New Contributor III
New Contributor III

Hi All,

We have below requirements to pull users data from Workday(Auth source). 

1 It should remove the suffixes from the Last Name (ex: Jr, Sr, jr, sr)

2. if the middle name is provided is single letter it should made capital and concat with "."  , if it is a word then 1st letter should be capital letter followed with small letters.

We need the preprocess script for to fetch the data, kindly assist if anyone has worked on similar scenario.

2 REPLIES 2

rushikeshvartak
All-Star
All-Star
{
    "ADDITIONALTABLES": {
        "USERS": "SELECT USERNAME,FIRSTNAME,LASTNAME FROM USERS"
    },
    "COMPUTEDCOLUMNS": 
	[ 	"USERNAME"
	],
    "PREPROCESSQUERIES": ["UPDATE NEWUSERDATA SET NEWUSERDATA.lastname = REGEXP_REPLACE(NEWUSERDATA.lastname, '(^MR.|JR.|Sr.|II|IV|X)(s|$)', ' ')"
    ]
}

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi @rushikeshvartak 

Thanks for the response.

Any suggestions for the Middle Name.