Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/28/2024 10:05 AM
We have a DB connector. The Target Application has exposed Stored Procedure for provisioning/de-provisioning.
The stored procedure has multiple IN and 1 OUT parameter. Looks like the DB Team has done exception handling in the stored procedure. The OUT parameter will return "SUCCESS" if the operation is success else it will return the error description.
I have 3 questions:
1. Based on the documentation, i don't see how to pass the OUTPUT parameter and it only has sample to send the IN parameter. Need some sample JSON to call stored procedure with OUT parameter.
2. We need to fetch values from one of the form attribute, extract a string and use in the stored procedure. Can we use fetch the value, manipulate to extract the string and use it in stored procedure? For example, User would see "Business User Controller:BU" on the form but we need to send "Business User Controller" in the procedure, removing the string after ":".
3. The OUT parameter would return "SUCCESS" if the operation is successful or else it will return the error message that means the provisioning failed. We need to have some logic in configuration to error out the task or consider as success based on the response. This applies for for user cases like Add Access, Remove Access and Disable.
Solved! Go to Solution.
08/28/2024 10:09 AM - edited 08/28/2024 10:10 AM
1. Based on the documentation, i don't see how to pass the OUTPUT parameter and it only has sample to send the IN parameter. Need some sample JSON to call stored procedure with OUT parameter. OUT parameters are not supported currently
2. We need to fetch values from one of the form attribute, extract a string and use in the stored procedure. Can we use fetch the value, manipulate to extract the string and use it in stored procedure? For example, User would see "Business User Controller:BU" on the form but we need to send "Business User Controller" in the procedure, removing the string after ":". String manipulation can be performed
3. The OUT parameter would return "SUCCESS" if the operation is successful or else it will return the error message that means the provisioning failed. We need to have some logic in configuration to error out the task or consider as success based on the response. This applies for for user cases like Add Access, Remove Access and Disable. OUT parameters are not supported currently
08/28/2024 10:17 AM
So another question, how does Saviynt will know if the store procedure is successful if the exception handling done in stored procedure? How does Client handle these kind of request? Is the only way to handle to have a new stored procedure created without having a OUT parameters?
Could you share a sample or syntax how to use a string manipulation for DB connector?
08/28/2024 10:20 AM
08/28/2024 10:38 AM
Appreciate all the help @rushikeshvartak .