What is the use of getReference()?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-08-2018 08:34 AM
What is the use of getReference()?
- 137,068 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2018 09:36 AM
Good to know as well is that ServiceNow doesn't recommend using getRefence any longer. Either use a GlideAjax call or using a display Business rule.
//G
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-13-2021 03:28 PM
Why don't they recommend getReference anymore??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2021 01:25 AM
Hello Brandon,
In the above explanations you can find why ServiceNow don't recommend using getReference() method anymore.
And mainly using getReference method without callback function is not recommended at all, but if you have requirements where you have to use getReference(), then use it with callback function.
Hope you find answer to your question using the above explanations.
Regards,
Soumya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-03-2022 12:58 AM
Performance impact is the reason. This article covers it well:
Regards
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-05-2021 11:29 AM
Hello
Can you please show where ServiceNow is saying that getReference() should no longer be used? I'm thinking based on this API function that it's FINE TO USE, as long as you specify a callback function with it:
Thoughts?
