i need know,where exactly the client scripts,business rules,script includes are using by default in servicenow

ganjimahesh
Tera Contributor

i need know,where exactly the client scripts,business rules,script includes are using by default in servicenow

7 REPLIES 7

oharel
Kilo Sage

Are you asking where they can be accessed?


If yes:


Script includes: type in the filter box "script include" and you will see them under System UI


Business rules, client scripts and the rest can be found either the same way (in the filter box, type business rule or client script etc) and you will find them under System Definition (BRs and client scripts).


Also, you can find them in their specific tables. For example: Go to the incidents list and right -click on top of one of the   columns. Choose Configure -> All and you will see them ordered in tabs.



If that's not what you meant, please explain further.


harel


Hi Harel,



    What exact iam asking means,in which modules these client scripts ,Business rules,script includes are appears.


All are asking that, bydefault these codings are used exact loc.


Hi Mahesh,



Please find below for the related tables under which those script types do appear.


Client Script: Table is 'Client Script' (sys_client_script).


Business Rules: Table is 'Business rule' (sys_script).


Script include: Table is 'Script include' (sys_script_include).



All the above tables extends from Application file (sys_metadata) table. If you navigate to System definition-->Tables-->and search by the Label (or Name), you will find the table from where the script belongs.



I hope this helps.Please mark correct/helpful based on impact


Hi Manesh,



If you are asking where they are stored, then see amlanpal 's answer, although I am not sure I understand why you need to know this.


If you're asking where they appear - as in what context, or where and why they are used - then, as I said, they are used for all sort of things, depending on the table and their intended functionality: insert and delete records, show and hide fields, pop up windows, populate fields with new data, validate data, retrieve information, allow or keep a user from inserting data into fields and much, much more.


For example: you can use a business rule to insert a new record on the same or a different table upon submission of a record. You can also do that using a client script. You can use an onLoad or onChange client script to show and hide fields (you can also use ACLs and UI policies all of which contain scripts, depending on your needs). You can use an onChange script to validate data inserted into a field, or to copy data from one field to another.


The platform is very flexible in these matters, although there are best practices, some based on the wiki's documentation and some on this community's experience and expertise. You can check out ctomasi's Technical Best Practices for example.



As many people asked you, please describe your needs or goals so we can be more specific with our answers.



harel