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.

Cannot create new records under new CI Class (extended from App Service)

chand2
Tera Contributor

Hi everyone,

 

I'm having difficulty with creating new records under a new CI Class which was extended from the Application Service class (cmdb_ci_service_auto). I tried creating a new CI Class extending from the Mapped Application Service (cmdb_ci_service_discovered) and I am able to create new records there. 

 

Is there some added restrictions extending from the parent App Service class? 

 

Appreciate any help! Thanks. 

1 REPLY 1

J Siva
Kilo Patron
Kilo Patron

Hi @chand2 

Please check the "New" UI action on the table 'cmdb_ci_service_auto'. That table has a dedicated "New" UI action with very specific condition. As per the existing condition, "New" button is visible only on the "cmdb_ci_service_auto" table.

current.getTableName() == 'cmdb_ci_service_auto'

Modify the condition as required and see.
Ex. Change the condition like below,

current.getTableName() == 'cmdb_ci_service_auto' || current.getTableName() == '<YOUR CUSTOM CI TABLE NAME>' 

JSiva_0-1744621527540.png

Hope this helps.
Regards,

Siva