Is there a glide alternative to the Package.util.hashmap() function in servicenow?

mpsteve137
Tera Expert

Servicenow is recommending that I use their package removal tool to replace this line Packages.java.util.hashmap() with a glide alternative but when I run the tool, it doesn't provide any alternative code. Also the list of replaceable package calls does not list any java util functions:

https://docs.servicenow.com/bundle/paris-application-development/page/script/general-scripting/concept/c_PackagesCallRemovalTool.html#r_GlideScriptableObjectReplacementList

Any advice?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@mpsteve137 

package calls won't work in scoped application

refer below link for help

A Map Data Type for ServiceNow

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@mpsteve137 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@mpsteve137 

Hope you are doing good.

Let me know if I have answered your question.

If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

 

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Prateek kumar
Mega Sage

Will this help?

https://community.servicenow.com/community?id=community_question&sys_id=12ff7aeddb58dbc01dcaf3231f96...


Please mark my response as correct and helpful if it helped solved your question.
-Thanks