Page 1 of 1

Use of variables on http request trigger

Posted: 19 Sep 2013 19:19
by ChaosNo1
Hi,

i tried to use a variable for the request path in the http request trigger but this seems not to work. Would it be possible in a future version?

Thanks
Sascha

Re: Use of variables on http request trigger

Posted: 20 Sep 2013 09:57
by Martin
Hi,

The action HTTP Request should already support variables in the path field.
A variable should also be highlighted in blue in the URL field. Something like this should work:
http://host/xyz{triggertime,dateformat,yyyyMMdd}

Regards,
Martin

Re: Use of variables on http request trigger

Posted: 20 Sep 2013 21:04
by ChaosNo1
Yes but i want to use variables in the request trigger but in the action :)

Re: Use of variables on http request trigger

Posted: 21 Sep 2013 09:54
by Martin
Ahh, you really mean the trigger :D

Supporting variables in triggers is usually quite complicated (or impossible in some cases) but it should be possible to add variable support in this particular case.
How would you want to use the variable exactly? Can you give an example flow or a use case so I better understand your requirements?

Re: Use of variables on http request trigger

Posted: 21 Sep 2013 21:24
by ChaosNo1
Hi. I have two flows with a http request trigger listening on the same sub path /am/Spotify and a third flow doing some httpmanipulation by rewriting links using the same path. I want to make this more comfortable by adding the path as variable and use this instead of some kind of "hard coding".