What is the use of getReference()?

ishankaggarwal
Tera Contributor

What is the use of getReference()?

15 REPLIES 15

this is one of the best explanations of getReference that I have come across. 

Rajesh Mushke
Mega Sage
Mega Sage

Hey ishankaggarwal



i hope your query is answered,can you please close this thread then only this will be helpful for other community user.



If i have answered to your query, Please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.If you are viewing this from the community inbox you will not see the correct answer button.


If so, please review How to Mark Answers Correct From Inbox View




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

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

Why don't they recommend getReference anymore??

 

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