AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Report De...
Creating a report t...
 
Notifications
Clear all

Questions Creating a report to automatically send for prior day and month

 
Acumatica Report Designer
Last Post by Paul R. 3 years ago
3 Posts
2 Users
2 Reactions
1,654 Views
RSS
Paul R.
Posts: 18
 Paul R.
Topic starter
October 20, 2022 4:30 pm
(@paul-rapnikas)
Eminent Member
Joined: 4 years ago

I created a simple report that has 2 parameters, Start Date and End Date.  I set the default Start Date to "=@Today-1" and the default End Date to "=@Today".  I saved it as a template and scheduled it to run every morning.  Now, I want to be able to do the exact same thing every month.  I tried to check if there was a way to dynamically set the start end end dates depending on the job that I'm running (daily or monthly) but I cannot find a way to set those.  I could only find it in the report itself.  I could duplicate the report and set the default dates to the previous month, but that seems inefficient.  Who know, maybe I later add a report to run for the previous week.  So, is there a way to use variables like "@Today" in the automation scheduler or report template?


2 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
October 20, 2022 6:00 pm
(@roycelithgo)
Honorable Member
Joined: 5 years ago

No, not possible.

Put a checkbox parameter in the report which you tick in the schedule template.

Then in the report criteria, where you apply the Start and End Date filters, enhance the logic to incorporate the checkbox parameter. If the parameter is false, apply your @StartDate & @EndDate logic. If it's true, use a filter based on @Today (ie. the same defaults you applied to the parameters).

Here's an example I did for AR Aging MC:

image
image
image

The filter is just a subset of all the changes I needed to make for this particular report but you should get the idea.

Basically wherever the original @AgeDate appeared, I wrapped it with my formula which overwrites that date with Today's date when the @AgeTodayDate checkbox is checked.


Reply
Paul R.
Posts: 18
 Paul R.
Topic starter
October 21, 2022 12:37 pm
(@paul-rapnikas)
Eminent Member
Joined: 4 years ago

Actually, this worked well. Instead of a checkbox, I created a short list (so that I can expand later) and used a "Switch" statement instead of the "IIf" statement.  Thanks for your help.


Reply
Royce Lithgo and Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 3 Online
  • 2,324 Members
Our newest member: Michael Kiley
Latest Post: Pick List report suddenly not splitting on Shipment
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×