Dynamic Text in Body of Scheduled Report if there is no data for the given week
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2022 08:12 AM
I need to schedule a report so that the text changes to " There is no data for this Weekend" if the report output does not have any data and the mail should trigger with the above text.
If I select "Omit if no records" Option, the mail would not trigger at all and that is something we don't want.
Any thoughts on how to achieve this?
- Labels:
-
Reporting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2022 08:34 AM
It is possible. You will need to use SncTriggerSynchronizer.
The article below uses this to send a schedule report to dynamic recipients. In your case it is not dynamic recipients but dynamic message.
You will have to just update the Subject and Introductory Message fields instead of Users field
https://community.servicenow.com/community?id=community_article&sys_id=873319531b8b98508672ea89bd4bcb64
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2022 08:41 AM
That seems to be too complex, I guess what I'm trying to achieve should have a simple solution, if there is one.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2022 08:44 AM
There is no other easy way.
You can do it in another way, but that is crazy complex and not very user-friendly.
This is the most direct way. It's very simple actually
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2022 10:16 AM
Hi Kapil,
I am working on the same requirement, can you kindly share the solution if you have implemented this ?
I want to send a different message from scheduled report when there are no records.
Appreciate your help.