Use of variables on http request trigger

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
ChaosNo1
Posts: 9
Joined: 14 Sep 2013 13:38

Use of variables on http request trigger

Post by ChaosNo1 » 19 Sep 2013 19:19

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Use of variables on http request trigger

Post by Martin » 20 Sep 2013 09:57

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

ChaosNo1
Posts: 9
Joined: 14 Sep 2013 13:38

Re: Use of variables on http request trigger

Post by ChaosNo1 » 20 Sep 2013 21:04

Yes but i want to use variables in the request trigger but in the action :)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Use of variables on http request trigger

Post by Martin » 21 Sep 2013 09:54

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?

ChaosNo1
Posts: 9
Joined: 14 Sep 2013 13:38

Re: Use of variables on http request trigger

Post by ChaosNo1 » 21 Sep 2013 21:24

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".

Locked