- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2019 06:50 AM
gs.addInfoMessage(gs.getMessage("New User Created: {0}", current.caller_id.getDisplayValue()));
I have used this statement on a 'Before' Insert and Update Business Rule. When the page is to be submitted this runs. While testing I noticed sometimes sometimes it worked and sometimes it didnt work?
Same with gs.print() function.
Any specific reason? Is this normal to happen? Has it ever happened before?
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 02:43 AM
Hi,
if you use gs.info("test"), then it will be visible every time this script is called.
if you use gs.addInfoMessage, hen this will be visible only when you are on the screen from where this script is executed.
if you are using gs.info or gs.log with the dynamic value, then if the dynamic value is null, then you might not see the information.
Hence it is advisable to add the log with the static text along with dynamic something like below
gs.info("Testing value"+yourval);
Also, check if the gs.info log exists in any condition. Maybe the script or block of code is not being executed everytime.
Mark comment as correct and helpful if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 02:19 AM
Thanks for replying. The thing is sometimes the logs aren't shown at all even in same external and internal conditions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2019 02:43 AM
Hi,
if you use gs.info("test"), then it will be visible every time this script is called.
if you use gs.addInfoMessage, hen this will be visible only when you are on the screen from where this script is executed.
if you are using gs.info or gs.log with the dynamic value, then if the dynamic value is null, then you might not see the information.
Hence it is advisable to add the log with the static text along with dynamic something like below
gs.info("Testing value"+yourval);
Also, check if the gs.info log exists in any condition. Maybe the script or block of code is not being executed everytime.
Mark comment as correct and helpful if this helps.