Scripted Extension Point vs Inheritance Script Include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 07:48 AM - edited 04-23-2024 07:50 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 06:47 AM
Hello David,
Have you resolved this??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 07:12 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2024 07:28 AM
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.