UI action on related list is not visible when there are no records (new engagement is created)

Obito
Tera Expert

Hi All,

We have related list named as 'Controls' on the Engagement form, This related list is set to be visible only when Engagement state is in scope or validate. When I created a new engagement which is in scope state, I still cant see the add button on Control related list. What is this behavior. The condition I used on UI action is below.

(RP.isRelatedList() && (current.sn_audit_engagement.state == -5 || current.sn_audit_engagement.state == 1))

Obito_0-1730797851367.png

The button works properly as per condition when there is at least a single record. How to resolve this.

Thanks

 

 

3 REPLIES 3

Runjay Patel
Giga Sage

Hi @Obito ,

 

Share the ui action screenshot. Also hopping you are creating engagement with value -5 and 1.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Hi @Obito ,

 

Did issue resolved or still facing an issue.

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Najmuddin Mohd
Mega Sage

Hi @Obito ,

Click on the Configure List and make sure the Omit if Empty is False

NajmuddinMohd_1-1731064764766.png


If the above information helps you, Kindly mark it as Helpful and Accept the solution.
Regards,
Najmuddin.