How do I pass a date returned by a http request into another http request - VisualCron - Forum

Community forum

BrianByrne
2020-09-22T15:46:31Z
Hi,
I have a http request that returns a date string like 2020-09-18T00:00:00
I want to use the result in a call like
https://somedomain.com/api/test?date= {TASK(PrevTask,StdOut)}

However my endpoint is complaining the date parameter is invalid.

I've tried calling my endpoint manually with the following url and param and it works
https://somedomain.com/a...date=2020-09-18T00:00:00 
So I don't think I need to format the string.

I've even checked that {TASK(PrevTask,StdOut)} is working correctly by putting
echo {TASK(PrevTask,StdOut)}
in a powershell task and it works too.

Thanks
Scroll to Top