The CreatorCon Call for Content is officially open! Get started here.

Scripted Extension Point vs Inheritance Script Include

davidnavelgas
Tera Contributor

Hi,

 

I've been researching about how is the best approach to extend/override the exist functionality inside ServiceNow. Specially for my app, I would like to override the method filterLifeCycleStage of the OOB LifeCycleUtil script include. My first idea was created a new Script Include that extends of the OOB script include and create a new method that include the code that it requires. However, in other post I read about the Scripted Extension Point like the best way to extend functionality.

How I can use this ServiceNow's feature to override this method? What advantages have this approach? Has any influence in the performance of the execution?

 

Thanks in advance.

Cheers.

3 REPLIES 3

Ra_l Alonso
Tera Contributor

Hello David,

 

Have you resolved this??

Seraj
Tera Guru

Hi @davidnavelgas ,

I have mentioned some best practice to use script include or extend the functionality

Best practice

  • Don't try to modify or customized any out of the box script include.
  • If you want to modified or customized any script then first make duplicate of that or copy that then you can customize as per your requirement.
  • In your application if any common functionality need to perform on extending tables then you have to extend the functionality on your table.

 

 

Hi,

I agree with your point of view, but I would like to know more about Scripted Extension Point. Anyone knows about that?

 

Thanks in advance

Cheers.