- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-31-2023 04:41 AM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-31-2023 05:39 AM
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-31-2023 05:39 AM
- 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