You need to sign in to do that
Don't have an account?
Don Schueler 6
Using Dynamic Date Literals in SOQL for Loop
I have a for loop over a SOQL select using a date field with a date literal e.g. LAST_MONTH
I would like to make this more generic by providing the ability to pass in the datevalue dynamically as a variable into the SOQL Quert e.g. :monthFilter
Is there a good way to do this?
I would like to make this more generic by providing the ability to pass in the datevalue dynamically as a variable into the SOQL Quert e.g. :monthFilter
Is there a good way to do this?
Try this method by using Database.query() method,
Let me know if it works.
Thanks,
Nagendra