Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Hi Vkachineni, 

I think that would not work here because if I go with UI action I can pass table name dynamically but the field [user the want the filter on] wouldn't be accessible so I won't be able to pass that to my script include. Field is most important in my scenario as the filter will have to return values accordingly. 

I appreciate your response. 

 

Thanks & Regards,

Sharjeel

Regards,
Muhammad