- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2023 12:09 PM
Hi,
What is use of getReference in client side. I know we can get data from server side to client side but we can get data with GlideAjax as well then what is use of getReference.
Can anyone please make me understand for it.
Regards,
Nivedita
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 07:15 AM
Hi @niveditakumari ,
The g_form.getReference() method requests the whole Record (one Object with all fields values) to the server. It may cause slowness to your Client Side action.
Many cases one or very few fields are necessary for us. So, instead of getReference we can use GlideAjax.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2023 07:15 AM
Hi @niveditakumari ,
The g_form.getReference() method requests the whole Record (one Object with all fields values) to the server. It may cause slowness to your Client Side action.
Many cases one or very few fields are necessary for us. So, instead of getReference we can use GlideAjax.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar