current.update() is not working in my Scheduled Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Using Yokohama release, and I have the following roles: itil, report_admin, report_publisher, report_scheduler, report_user, and schedule_admin.
I have a Scheduled Report that aims to dynamically modify the email message body to display any 'hits' found within a separate Glide Record of Change records. I want the outbound email to list any CHG numbers where Requested by = "John Doe". (Note: The report I associated with my Scheduled Report returns plenty of Change records, and many are confirmed to have been Requested By "John Doe".) The report is mine, and the Scheduled Report is set to "Run As" me.
As part of my Scheduled Report condition, I record each 'hit' by adding it to the outbound email message body. Lastly, I add current.update(); so that any updates to the message body earlier in the script will become part of the outgoing email. However, when the script runs, the email finally arrives but it still shows only the original message body without any of the scripted body updates. Since receiving an email means the entire script evaluated to true, maybe something 'tried' to happen.
In years past (prior to Orlando release) I had successfully been able to do this in dozens of different scheduled reports. Wondering if:
2. Here is the script in my Scheduled Report form:
Theories are welcome, but verified solutions are REALLY welcome! THANK YOU, community!
Scott Bjorke
scott.bjorke@gmail.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
If my understanding is correct, what you are doing just will not work. The Condition field should simply evaluate to true or false to determine whether or not to run the scheduled execution of emailing the report referenced.
However, the introductory message can be used to run mail scripts for that dynamic content as discussed here. Just allow your Condition to evaluate to T/F and move all of the dynamic content portion into the mail script.
Please correct my understanding if I've missed something.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
That’s a very interesting option. However, as indicated in my original messsge, I don’t have the required “admin” role , so I cannot create email scripts.
What I’m referring to is something had worked fine for years until Orlando was released. Hoping the solution simply shifted elsewhere within the tool rather than needing absolute "admin" access.
Great idea though. Thank you for the education!
Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I think the report generation and the creation of the initial email occur before your conditional script is executed.
Regards
----
If this response was helpful, please select "Accept as Solution" and "Helpful." This helps both the community and me.
