It was surprising to find out that Sailpoint do not provide a key-value pair / code-decode LOV/Dropdown functionality OOTB till IIQ 7.2 (Please feel free to differ as I literally have 24 hrs of experience with the tool at the moment, however I did research the community and it seems it's an issue a lot of people are facing).
Sure you can use the 'Allowed Values' functionality with the actual 'Value' , but that does not solve the problem of showing 'key' or 'decode' values in the front end.
STEP 3. go to your application definition -> Configuration -> Provisioning Policy -> Create Policy ->Edit the dropdown attribute -> Select 'Rule' under 'Allowed Value' section, and select the rule you created in last section. (alternatively, you can use 'Script' )
Sure you can use the 'Allowed Values' functionality with the actual 'Value' , but that does not solve the problem of showing 'key' or 'decode' values in the front end.
So without further ado, here's how we can achieve it (taking Salesforce Profile IDs for example ) -
Prob - I need to show 'System Administrator' to the user in the application account request form , while sending '00e2v000002Xj74AAC' to the target (Salesforce in this case).
Solution :
STEP 1. Create a custom object which holds this Key-Value pairs of a dropdown, you can add multiple dropdown values in the same custom object by storing the Map in the value, and specifying a unique Key for each Map value -
Go to "Debug" page -> Find Custom objects -> Click on 'New' -> Paste your custom object and save.
STEP 2. Create a 'Allowed Value' rule for returning the key set of the mentioned custom object from debug page -
Prob - I need to show 'System Administrator' to the user in the application account request form , while sending '00e2v000002Xj74AAC' to the target (Salesforce in this case).
Solution :
STEP 1. Create a custom object which holds this Key-Value pairs of a dropdown, you can add multiple dropdown values in the same custom object by storing the Map in the value, and specifying a unique Key for each Map value -
Go to "Debug" page -> Find Custom objects -> Click on 'New' -> Paste your custom object and save.
STEP 2. Create a 'Allowed Value' rule for returning the key set of the mentioned custom object from debug page -
STEP 3. go to your application definition -> Configuration -> Provisioning Policy -> Create Policy ->Edit the dropdown attribute -> Select 'Rule' under 'Allowed Value' section, and select the rule you created in last section. (alternatively, you can use 'Script' )
So now, you have your desired user-friendly list of values showing in the dropdown , however, you need to change those Key/Decode/Front end values to the value/code/backend values before actually pushing the user account data in the target.
Hence, STEP 4 - Create / Add to an existing 'Before Provisioning Rule' for the data modification :
Application definition -> Rules -> Before Provisioning Rule -> Select the rule
Hence, STEP 4 - Create / Add to an existing 'Before Provisioning Rule' for the data modification :
Application definition -> Rules -> Before Provisioning Rule -> Select the rule
No comments:
Post a Comment