โ05-19-2023 12:20 PM
I am doing an API call by passing dynamic timestamp in Query Parameters section , here is the value I am passing
โINSTALLED_SW_LAST_CHANGE_TIMESTAMP%20ge%20โ+Date.now().toLocaleDateString()+โT15:00:00-05:00)โ.
I am getting status code error 400
But if I am passing same value in edit pipeline section as below pic , pipeline works fine.
Can you please help me to resolve this issue. Thank you for your help.
โ05-28-2023 10:34 PM
This is weird indeed, can you try to put everything in the Service URL and try it? Donโt pass them via query parameters[Although it should work].
โ05-30-2023 12:35 PM
If TIMESTAMP value is hard coded in service URL it works, but if same value given in query parameter it doesnโt work .
โ05-31-2023 12:33 AM
Hi @Soni37,
I can see your filter added as a query parameter is missing an opening parenthesis, maybe thatโs the problem?
Other thing I would like to add is that passing the same expression as a parameter wonโt be evaluated, and it is going to be considered as a string.
Meaning, the part Date.now().toLocaleDateString() will not be evaluated tto the current DateTime.
Hope this helps,
Regards,
Bojan
โ05-31-2023 09:02 AM
@bojanvelevski
The same parameter when given in edit pipeline works, and also when I try to evaluate in query parameter I get valid format.