Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
SR2210
Contributor
Contributor

dynamic tREST HTTP body

Hi All,

I am currently extracting data from an API with below request body. However I'm not able to get TalendDate routines passed to the request body.

0693p00000AFBCeAAP.jpg

"start_date" should be 2 days before the current date and "end_date" should be the current date. if i hardcode the dates like in the screenshot it's working fine & i'm able to get data.

I've tried these but it's not working:

"start_date" : TalendDate.addDate(TalendDate.getCurrentDate(),"yyyy-MM-dd",-2,"dd")

"end_date" :

TalendDate.getCurrentDate()

I have also tried adding double quotes and + at the start but also unable to get the data for that date range. Please help if i missed out anything or if there are other solutions to this. Thanks!

Labels (4)
1 Reply
SR2210
Contributor
Contributor
Author

Hi @Manohar B​ do you have any idea on above issue? I would like to pass the value of TalendDate.getCurrentDate() to http request body.

 

Appreciate your help on this. Thanksss