Dynamic column in a workflow form

Which IIQ version are you inquiring about?

8.4

Share all details about your problem, including any error messages you may have received.

I am trying to create a workflow form which lets a user view all the entitlements they own and select a new owner . This is to be triggered during a mover event. I don’t see an API to dynamically add the number of column to dispaly the entitlements the user owns. How can I display all the entitlements the user owns and also get “newOwner” as an input? TIA

Hi @dmaan ,

In the form , create two fields in the form ,one to display the entitlements owned by the user and other one to set the new owner.

Make these fields visible and hidden based on the conditions like if the user owns any entitlement then display entitlements and display a field to get new owner. In the next step in the workflow , get the new owner input and set new owner for entitlements.

If the user is not the owner of any entitlement , then you can add a step condition to skip displaying the form step in workflow.

Hi Diwas,

Workflow forms in IIQ do not support dynamically adding columns or rows at runtime, so entitlements cannot be rendered as individual UI components.

To display all entitlements owned by the user, the recommended approach is to pre-calculate the entitlements and render them in a single read-only TextArea field for visibility.

If entitlement level selection is required, a dropdown can be populated using an AllowedValuesDefinition backed by a Rule. The rule is executed when the form is rendered and must return a fully resolved list or map of the user’s owned entitlements.

Add a separate Identity field to capture the newOwner. This field can be filtered based on business requirements such as department, role, or other attributes.

I hope this helps provide clarity on the approach. Please let me know if you need any further clarification or additional details.

Best Regards,

Rana Chilkuri

2 Likes

hi Rana,

I already have a list of entitlement the user owns, I was aware of the drop down option but I wanted to check if a separate field for each entitlement was possible, which would have been more user friendly. I will give this a try and let you know. Thank you for your response.

hi Chathurya,

“if the user owns any entitlement then display entitlements” - how to display all the entitlements in a separate field dynamically?

Hi @dmaan ,

I meant use a step condition to check if the user is owner of any entitlements , to display the form containing the entitlements owned by the user in workflow else skip this step and transition to next step in your mover workflow.

SailPoint does not support dynamic columns for all entitlements to set new owner

hi Rana,

any idea how I would display the entitlement and the current owner in the drop down or text area?

Get entitlement value and owner name for all entitlements.
Now in text area you can try using string concatenation which is an easy and user-friendly approach. for e.g.:

String showText = "";
for(String value : entitlementValues)
{
     showText = "Entitlement Value = " + value + " ; Owner = " + owner + \n ;
}
return showText ; // this should be displayed in text-area

It would print something like below in text-area:

============================================
Entitlement Value =  Ent_1 ; Owner = Owner_1
Entitlement Value =  Ent_2 ; Owner = Owner_2
Entitlement Value =  Ent_3 ; Owner = Owner_3
============================================

Please check logic as this is just to highlight the idea.

this will display the entitlements and owners but I need to figure out a way to let the user select an individual entitlement and provide a new owner for the corresponding entitlement.

Here is the logic I would go ahead with:

Display 2 fields - ent name(list of entitlement whose owner the user is) and new owner

Intially display these 2 empty dropdowns :

maintain a global Data structure say a HashMap/Map which stores Map<EntName, NewOwner>

allow user to select ent name and in the adjacent field he will be able to select new owner.

provide a Save button whose action will be to save this entName and owner. This button should only save current entry and not terminate wf.

Now remove this entitlement from dropdown, once user hits Save button.

Along with Save button you can provide Submit button which should be greyed out untill all ent names and owners are selected one-by-one.

Once the dropdown is empty activate the Submit button and terminate wf.

This will require some testing on your end in lower env but it should work!

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