function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael DsozaMichael Dsoza 

custom date parameter in standard report

Hi,

I have to pass paramter as from date and to date in standard report.
Also, I want to schedule the report on specific day.

I can set the parameter using custom link with pv0 to pvN as parameter. But how can I pass the same parameter while scheduling ??
Andy BoettcherAndy Boettcher
Can you use the built-in date options in the report builder?  (last 2 weeks, current month, etc.)?

You cannot pass parameters in the scheduling feature.
Michael DsozaMichael Dsoza
Thanks Andy,

Also, let me know how can I use from date as any specific date of month like (10th of the month) in reports. 
Because I need to export reports details every 5th of the month (10th of previous month to 5th of current month).
Andy BoettcherAndy Boettcher

You could just use the "LAST MONTH" or "LAST DAYS" relative date variable - because you're specifying when you run the report, that should do it.

https://help.salesforce.com/apex/HTViewHelpDoc?id=custom_dates.htm

Michael DsozaMichael Dsoza
Thanks Andy,

If I use LAST MONTH then it will starts with 1st day of last month. Also, LAST n DAYS will not work properly in case of (30 days, 31 days & 28 days). Because I want to pull out the data for specific date range (viz.5th of last month to 10th of current month).