gs.getMessage (or System Localization) public REST API

Stefan Uzunov
Tera Contributor

Hello,

Is there a public REST API(analogical to Table API) that contains a method similar to the gs.getMessage method?
Alternatively, is there public REST API for the System Localization module?

Thanks!

1 ACCEPTED SOLUTION

Tushar
Kilo Sage
Kilo Sage

Hi @Stefan Uzunov 

 

  • I believe there is no public REST API specifically dedicated to the gs.getMessage method or the System Localization module.
  • However, there are other ways to achieve localization and handle messages using REST APIs in ServiceNow using the Translation API and the Table API
  • The Translation API allows you to translate text into different languages. You can use the /api/now/translation endpoint to perform translations.
  • This API can help you retrieve localized versions of text, but it's not a direct replacement for gs.getMessage.
  • The Table API allows you to access records from localization-related tables like sys_ui_message, sys_ui_macro, or sys_choice that store translated messages, labels, and choices.
  • You can use the Table API to retrieve the localized version of a message for a given language.

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Regards,
Tushar

View solution in original post

1 REPLY 1

Tushar
Kilo Sage
Kilo Sage

Hi @Stefan Uzunov 

 

  • I believe there is no public REST API specifically dedicated to the gs.getMessage method or the System Localization module.
  • However, there are other ways to achieve localization and handle messages using REST APIs in ServiceNow using the Translation API and the Table API
  • The Translation API allows you to translate text into different languages. You can use the /api/now/translation endpoint to perform translations.
  • This API can help you retrieve localized versions of text, but it's not a direct replacement for gs.getMessage.
  • The Table API allows you to access records from localization-related tables like sys_ui_message, sys_ui_macro, or sys_choice that store translated messages, labels, and choices.
  • You can use the Table API to retrieve the localized version of a message for a given language.

Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!

Regards,
Tushar