Hello experts,
I have created two workflow user constant, History_Enddate and Forecast_StartDate(shown in attached screenshot).
Logic is as follows:
History_enddate : Last date of previous month (eg. if workflow is run in month of Feb, this date is 31st Jan 2021)
Forecast_StartDate : First date of current month (eg. if workflow is run in month of Feb, this date is 1st feb 2021)
These two user constant are used in the SQL editor while importing data (input tool) from the system(database).
I have currently hard coded this dates.
How best can these be made dynamic with respect to the run month.
eg. if workflow is run in month of March,
History_enddate should be last date of previous month --> 28th feb 2021 and Forecast_StartDate should be first date of current month --> 1st March 2021.
Regards, Ravi