Pass Dynamic values from condition builder to scripted filter

MrMuhammad
Giga Sage

Hi @Allen/ @Ankur Bawiskar / @Jaspal Singh/ @Dirk / @Ashutosh, 

I have developed the scripted filter that is working as expected with static values as a parameters. Now I am trying to make it 100% dynamic and to achieve this I need to pass dynamic values from condition builder to my classless script include. i.e. First param should be the Table name on which I am applying my filter and 2nd param should be the field name selected in the condition builder. See the screenshot below

find_real_file.png

 

Any help would be highly appreciated.

Thanks & Regards,

Sharjeel

Regards,
Muhammad
10 REPLIES 10

Kristoffer Mon1
Giga Expert

This is definitely possible. Please see my example below where I return the user ids' based on 'Group Name':

find_real_file.png

 

Of which I then use it the returned values in a report:

find_real_file.png

Hi Kristoffer, 

 

Thanks for your response. 

Yes, we can pass static values that I have already got working. Now, I am trying to pass the dynamic values, let say you are applying filter on incident table so it pass incident as the table name without asking me to manually enter incident as a parameter to function. 

 

Thanks & Regards,

Sharjeel

Regards,
Muhammad

Allen Andreas
Administrator
Administrator

Hi,

Just wanted to say that I've seen this and have been trying a few things on my PDI, but unfortunately, not getting any results. I feel like it should be possible, but none of the "documented" approaches seem to work.

This is gonna be one of those things where it'll be annoying not to figure it out, haha.

I'll keep looking, but I definitely get what you're trying to do.

-Allen


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi Allen,

 

Thanks for you response. 

Yes, I have spent several hours before posting the question. I also, tried every single approach that I could but got no luck. 

I am still on it, if something worked for me I will share here for sure. Its literally annoying but a good challenge.

 

Thanks Again,

Sharjeel

Regards,
Muhammad

vkachineni
Kilo Sage
Kilo Sage

You might have to use a List banner button UI action to read the filters and apply the them dynamically. You will need that extra click 🙂

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022