Updated post to reflect actual issue [14-03-23]
When binding Service Variable of type Datetime to a query parameter with validation, the Datetime value results in ‘undefined’.
Answer:
Solution:
Set input validation to ‘None’ until future release fixes this issue.
Original post
Hi!
I am trying to set up a simple service that sends some data when called upon. The data read into a runtime data source should be filtered on its created date based on an input parameter called “from date”. I am trying to use the built-in createdDate parameter for this filter but then nothing gets read to the data source (see the below image for setup).
For testing purposes, I have tried using another “custom” dateTime-property. This returns data so it doesn’t seem that the service setup is the issue.
This might be a bug(?), and a workaround could be to create another custom “created date” parameter but that doesn’t feel like the best solution here. Any ideas on why this is happening and how to get it to work as intended?
Running some more tests on this, it is not the Created Date property that is the issue. Having the same setup as you and without using a query parameter I am getting some data. The issue appears to be the query param (see image below for setup).
When setting the query param to any ISO 8601 datetime value (e.g. “2023-03-01T00:00:00.001Z” (without quotes)) - and using log to console - printing Service Variabels.From date resolves in ‘undefined’. So it’s a different issue than originally assumed. Any ideas?