how can I translate a string into a business rule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 08:44 AM
In this business rule I would like to translate the string "Integration error in GoSign case"
(function executeRule(current, previous /*null when async*/) {
gs.addErrorMessage(gs.getMessage('Integration error in GoSign case')+ current.number);
current.work_notes = 'Error in GoSign integration';
})(current, previous);
I have already put the string in the messages. but it does not work.
Anyone have any ideas?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 09:00 AM
@fabrizio95360 Have you checked this KB Article ? Let me know if it does not work.
Business Rule Message isn't being Translated
Thanks,
Harsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 09:12 AM
@Harsh Vardhan yes, I followed those steps but it doesn't work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2024 01:17 PM
@fabrizio95360 May i know how are you testing it ?
if you are using gs.getMessage() then user language should be exact same language which you want to translate , eg: if you want to convert the message into Spanish then current user should have default Spanish language on his profile.
If you don't want to change on user profile language then you can use gs.getMessageLang();
gs.getMessageLang("New email", "es");
Doc link for further details.
Let me know if you have any questions for me.
Thanks,
Harsh