Department based Filtering using Join Method

Which IIQ version are you inquiring about?

8.4

Hi

I want to filter the accounts based on the provided identity department value, I’m placing the bean shell rule without join method.

Rule Without join method -

but when I’m using the join method I’m getting only one account of the identity name - CCBN1102, but i want all the accounts that match with the department of CCBN1102 identity Iam placing the beanshell which i have used correct me where it is going wrong?

Rule with Join method -

Thanks!

Hello @Akhila_2001

Your Beanshell code without the join method is correct for your requirement. The join method restricts results to the specific identity, not all accounts in the department. Let know if doubt is cleared

Hi @asharma65 my requirement is to get accounts that matches with the provided identity department, but i cant achieve using the provided join method beanshell rule.

If i try removing the identity name filter than iam getting all the accounts .

Hello @Akhila_2001 What type of rule is this? If the input is identityName, we can change it to work for all identities in a specific department? Please provide the full code, including the XML inputs, and explain it clearly so we can investigate further.

Thanks -->Raju

Hi @asharma65 I agree with that, but is there a way to achieve that same logic using join method.

Hi @santhirajumunganda its a custom rule which i’m running it from the debug page, my requirement is to use join method, i have posted the logic without the join method in my previous post.

Hi @Akhila_2001, filters are not as general as you might like.
I recommend going with your first method and not trying to make the join work.

can you try this one qo. addFilter(Filter. eq(“identity.name”, identityName));