Hello !
I’m looking to pass a query parameter to a web flow from a launch url. I’d like my url to be:
https://app.airkit.com/trigger?id=12345
And be able to grab the id
and pass to my web flow. Has anyone done this in v18.0?
Hello !
I’m looking to pass a query parameter to a web flow from a launch url. I’d like my url to be:
https://app.airkit.com/trigger?id=12345
And be able to grab the id
and pass to my web flow. Has anyone done this in v18.0?
Great question! So for this scenario, you’re going to have to use an App API to do this. Check out the video below that i recorded that walks through the steps in v18.0.
Add an App API to your application and create your route
Add your query parameter on your endpoint
Add the Start Journey Data operation and pass payload.queryParams
to the start parameters
Location: journey.canvas_link
302
journey
session.start.id
.You can try this experience out here by clicking on the link and placing whatever you’d like in the query parameter:
https://app.airkit.com/redirect-with-parameters?id=insertIdHere
Quick update here, when you are using an App API and wanting to do a redirect, you should use 302
instead of 301
. In the video, I use 301 but recently came across that 301s are cached in the browser.
Thanks @kyung for flagging!
Also another note, session.start.queryParams
is an accessible namespace is 18.0 and you can actually just access that directly even when using a standard web link as a launch trigger.