Forum Discussion
Hi sameburn - Thank you
I have updated the query like this still having an issue and will try the one you suggested. thank you !
SELECT
Username,
MAX(LastLogonTime) AS LastUpdatedDate
FROM
UserLogonStatus
WHERE
LastLogonTime <= CONVERT(DATETIME, '|!logonThreshold!|')
GROUP BY
Username
I think the problem is that |!logonThreshold!| is not being replaced with the date/time. Temporarily replace that parameter with the 1/1/1900 12:00:00 AM and confirm it works, as it appears it should.
If the above test does work, then you can move on to figuring out why the dashboard parameter is not being replaced, or is being replaced with some other text string that cannot be resolved to a date/time.
The dashboard parameter will only be substituted if the Adapter is set to CommandType=SQL. And when you run the adapter, it should display the SQL statement before and after parameter subsitution.
If you are issuing the SQL statement from within a Business Rule, it is on you to take care of constructing the SQL statement with any runtime variables.
Related Content
- 2 months ago
- 2 years ago