We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Need help with declarative action

vidhya_mouli
Tera Sage



I have this action which should be visible only when the list query is u_state=checked_in^u_type=1.

 

vidhya_mouli_0-1782219593113.png



How do I get the query in the condition?

1 ACCEPTED SOLUTION

vidhya_mouli
Tera Sage

Did this by setting up Dynamic Record Conditions

vidhya_mouli_0-1782300747537.png

 

 

View solution in original post

6 REPLIES 6

1__PrabakaranC
Tera Expert

The list query is not automatically available as a variable in a Declarative Action condition script.

You can try inspecting the available parameters in the script context to see whether the query is being passed. For example:

gs.info(JSON.stringify(input));

or

gs.info(query);

If the query is not available in the action context, you may need to use a client-side condition or pass the filter value through another mechanism.

Could you share where the action is being rendered (Workspace list, related list, etc.) and what you've already tried?

*************************************************************************************************************
Thanks,
Prabakaran C
LinkedIn: https://www.linkedin.com/in/prabakaran-c-534b6826a
****************************************************************************************************************

vidhya_mouli
Tera Sage

Did this by setting up Dynamic Record Conditions

vidhya_mouli_0-1782300747537.png

 

 

Aditya_hublikar
Giga Sage

Hello @vidhya_mouli ,

 

First copy your query from native list ui as shown in image :

Aditya_hublikar_0-1782301242441.png

 

then paste it in your declarative list action client condition as shown in image :

Aditya_hublikar_1-1782301330819.png

 

output :

That declarative ui action will shown only for only those filtered record 

Aditya_hublikar_2-1782301363171.png

 

Aditya_hublikar_3-1782301427036.png

 

 

If this helps you then mark it as helpful and accept as solution.

Regards,
Aditya

 

 

Hello @vidhya_mouli ,

 

I hope you are doing well. Does my response helps you ?