Forum Discussion
Hi,
A lot of fields in ReadpyAPI have a right-mouse click context menu where you can access a Get Data option. Get data allows you to then pull in values from anywhere within the current workspace.
Try creating some new API request with has a query parameter and in the form view for your request, right-click in the field and check you can access Get Data. If so, try right clicking in the min value of your generator. With it being a dropdown, it's not likely there, but deffo worth giving a go.
- AutoBear2 years agoOccasional Contributor
Hi ChrisAdams, thanks for the reply! I already have a the "date" value set as an input value for a parameter of another API request in my project (as "${Data Source#date}"). So I can fetch the data there. The issue is upstream, meaning the data generated by the Data Source is incorrect. Or better said, it is incorrect when I try to generate the dates via the Groovy Script I pasted above; it is technically correct, but not what I want to have generated, when set as Data Generator (as I would like to be able to set the initial date dynamically as today's date).
Your suggestion about trying to right clicking in the min value of the Data Generator does not seem to work unfortunately.
Maybe someone has some more input on the possibility to implement today´s date as a start value when Data Generator is used, or someone has input on what is wrong with the Groovy Script above generating always the same date as result?