How to get the current source name in a rule?

Hi All,
I have about 20 sources, one per country, named ApplicationNameXX DB, where XX is the country.
E.g. TOPSUK DB

I have a JDBC provisioning rule in place that calls a Stored Procedure. The Stored Procedure call is something like this:

call TOPSUK.dbo.kn_IDN_RemoveGroupFromUser(?,?)

I don´t want to create 20 provisioning rules one for each country. For this reason I want to include in the script behind the rule, a verification of what is the current source name being used, get the left chars from the source name, so TOPSUK, and use this in a variable in the Stored Procedure call, so:

call TOPSCountryvariable.dbo.kn_IDN_RemoveGroupFromUser(?,?)

How can I get the current source name in the script behind the JDBC provisioning rule?

Thanks,
BR, Andrea

Did you try using this function?

import sailpoint.object.Application;
String applicationName = application.getName();

Hi Sharvari,
yes, but it was not recognised by SailPoint.
What I found in the import was …
application.applicationName.getValue
I will try with this command and look into the logs.
I will post the result here.
Thanks a lot.
BR, Andrea.

@AndreaQueiroz50

Here is a link to the Javadocs. This may help you find the Classes and Methods you need

https://developer.sailpoint.com/rule-java-docs/

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.