Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/09/2024 12:22 AM
Hello experts,
We are trying to add the case statement in update account json and
Existing updateaccount query
{"UpdateAccountQry": "ALTER USER \"${user.username}\" ACCOUNT (case when '${AccountStatus}'='Active' then 'UNLOCK' when '${AccountStatus}'='Inactive' then 'LOCK' end)"
}
getting the error SAV - Error while updating account - ORA-00921: unexpected end of SQL command
08/09/2024 02:46 AM - edited 08/09/2024 02:47 AM
{
"UpdateAccountQry": "ALTER USER \"${user.username}\" ACCOUNT CASE WHEN '${AccountStatus}' = 'Active' THEN 'UNLOCK' WHEN '${AccountStatus}' = 'Inactive' THEN 'LOCK' END"
}