Answer for this

Snow preck
Tera Contributor

What are the benefits of storing the majority of an Application’s server-side script logic in a Script Include?

a. This makes execution faster.
b. Only run when called from a script.
c. The script logic can be hidden when the Application is installed from the ServiceNow Store.

d. For some changes to application logic there is only one place to make edits.

  • A. a, b, and d
  • B. a, b, c, and d
  • C. b, c, and d 
  • D. a, b, and c
 
4 ACCEPTED SOLUTIONS

HrishabhKumar
Kilo Sage

Hi @Snow preck ,

It should be C.

 

Thanks.

View solution in original post

Sandeep Rajput
Tera Patron
Tera Patron

@Snow preck The answer should be

  • C. b, c, and d 

Reason: Script include does not make execution faster, it entirely depends on how the logic was written.

 

Hope this helps. 

View solution in original post

surajchacherkar
Mega Guru

Hi @Snow preck ,

 

correct answer is C. b, c, and d

execution performance is not based on script include but rather logic, query and when/where script is running.

 

For more info:

https://developer.servicenow.com/dev.do#!/learn/courses/tokyo/app_store_learnv2_scripting_tokyo_scri... 

 

If my response helped you, please click on "Accept as solution" and mark it as helpful.


Thanks

Suraj

View solution in original post

Jitendra Diwak1
Kilo Sage

Hi @Snow preck,

 

C is correct answer for this.

 

Please accept my answer if it resolves your query and thumps up.

 

Thanks

Jitendra

Please accept my solution if it works for and thumps up.

View solution in original post

5 REPLIES 5

Weird
Mega Sage

I'd say C.
Script includes don't make the execution faster since they're the same code + you're separately calling it.
You can however modify logic in one place, hide script logic in a custom app and the code is ran only when called from other scripts.

HrishabhKumar
Kilo Sage

Hi @Snow preck ,

It should be C.

 

Thanks.

Sandeep Rajput
Tera Patron
Tera Patron

@Snow preck The answer should be

  • C. b, c, and d 

Reason: Script include does not make execution faster, it entirely depends on how the logic was written.

 

Hope this helps. 

surajchacherkar
Mega Guru

Hi @Snow preck ,

 

correct answer is C. b, c, and d

execution performance is not based on script include but rather logic, query and when/where script is running.

 

For more info:

https://developer.servicenow.com/dev.do#!/learn/courses/tokyo/app_store_learnv2_scripting_tokyo_scri... 

 

If my response helped you, please click on "Accept as solution" and mark it as helpful.


Thanks

Suraj