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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

dynamic api's url passing variable - Error

Hi
I'm trying to pass dynamic date variable in api's url. 
Here is my job
0683p000009MByp.png
From Api's url JSON is coming and in tJavarow_1 am converting JSON to xml and storing in tfileoutputdelimited.
In url I pass specific date then get the JSON for that date only. But I want pass any variable which will store current date and get data accordingly.
Here is my trestclient component configuration.
0683p000009MC0b.png
And when I pass "myvalue" in URL it shows error like this in log

Payload: {"errorMessages":,"errors":{}}


In URL I'm passing variable like this 
http://152.196.2.84:1050/jira/rest/api/latest/search?%20worklogdate='mydate'&fields

In output am receiving the xml but empty.
Please help me for the same.
Labels (6)
1 Reply
Anonymous
Not applicable
Author

if i understood correct you want to send a request with mydate which can be any thing pass from variable. then you can use it like below. 
"http://152.196.2.84:1050/jira/rest/api/latest/search?%20worklogdate='"+TalendDate.getDate("yyyy/MM/dd")+"'&fields"

 or you can pass mydate value as 
TalendDate.getDate("yyyy/MM/dd")

please try this one.