Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/08/2024 05:46 PM
For example
While importing the users for importing Jobs , we are trying to import the users without special characters like above's one.
We are dealing email generation and display generation from MODIFYUSERDATAJSON . Hence need to escape the special characters also from MODIFYUSERDATAJSON query.
We have tried the below method but did't work.
"UPDATE NEWUSERDATA SET firstname = REPLACE(firstname, ‘`’, '')",
"UPDATE NEWUSERDATA SET lastname = REPLACE(lastname, ‘#’, '')",
Can you please suggest here?
Thanks in Advance .
01/08/2024 06:04 PM
Example
{"ROLE" : ["insert into SYSADM.PS_AVB_SAVIYNT_ACT(EMPLID , OPRID, FIRST_NAME , MIDDLE_NAME, LAST_NAME, EMAILID, ROLENAME, DATETIME_ADDED, ACTION_MSG, STATUS1 , DATETIME_UPDATED) values ('${user.username}','${task.accountName}' ,'${org.apache.commons.lang.StringEscapeUtils.escapeSql(user.firstname)}', '${user.middlename}', '${org.apache.commons.lang.tringEscapeUtils.escapeSql(user.lastname)}', '${user.email}','${task.entitlement_valueKey.entitlement_value}', sysdate, 'ADD', 'OPEN', sysdate)"]}
01/08/2024 09:15 PM
The above is for DB connector insert query . we are trying to escape special characters from preprocessor query . Can you please elaborate what we need to use or test.
for firstname and lastname
01/08/2024 09:29 PM - edited 01/08/2024 09:37 PM
Use database function to replace characters
01/09/2024 06:14 AM
I think FN_EIC_REPLACE doesn't work on PREPROCESSOR for 23.10. It should be implement on 23.12, but I didn't test it yet.
01/09/2024 04:55 AM
Hi Team ,
Thanks for the update.I have tried the below ways still not working .
Can you please suggest if anything wrong in the below queries.
01/09/2024 05:25 AM
Do you have data set with FN_EIC_REPLACE and value in attributes you trying to replace
01/09/2024 05:38 AM
Yes , we have data set and value for lastname that we tried
01/09/2024 05:55 AM
Share logs
01/09/2024 09:02 PM
{
"ADDITIONALTABLES": {},
"COMPUTEDCOLUMNS": [
"customproperty4",
"customproperty5",
"EMPLOYEETYPE"
],
"PREPROCESSQUERIES": [
"UPDATE NEWUSERDATA SET EMPLOYEETYPE = 'organizational/white-collar/external'",
"UPDATE NEWUSERDATA SET customproperty4 = FN_EIC_REPLACE(firstname,'REPLACE_MAP_CUSTOM')",
"UPDATE NEWUSERDATA SET customproperty5 = FN_EIC_REPLACE(lastname,null)"
]
}