# Dynamic Endpoint Reply

**URL:** <https://forums.losant.com/t/dynamic-endpoint-reply/5216>\
**Category:** Help\
**Tags:** workflow, endpoint\
**Created:** [August 14, 2023, 4:25pm UTC](https://forums.losant.com/t/dynamic-endpoint-reply/5216 "2023-08-14T16:25:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Logsdon](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Ryan\_Logsdon](https://forums.losant.com/u/Ryan_Logsdon)\
**Post date:** [August 14, 2023, 4:25pm UTC](https://forums.losant.com/t/dynamic-endpoint-reply/5216/1 "2023-08-14T16:25:04Z")

</div>

Hi there,

I am trying to make a dynamic QR Code redirect application that allows a webhook with query parameters to redirect to different websites based upon the query parameters. Currently, the webhook is structured as follows: https://[webhookURL]?variable=1. Based on the variable number, the workflow grabs a row from a table with a redirect URL.

The workflow works with a hardcoded redirect URL without a data node:

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/f/f8cbe9c80a338e684907a05dc395efed3d2f0f21.png)

The issue I have come across is that placing any Data node prior to the Endpoint Reply node causes the workflow to timeout and the webhook to never redirect:  
Workflow:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/6/63f62184dfbddf7b97cc0afeedb2cd7fa84ceb80.png)  
Webhook:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/5/5682dc090c2be11fcd1f38f8865f98e1afee48b7.png)

Does anyone know of possible causes or explanations?

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [August 14, 2023, 5:01pm UTC](https://forums.losant.com/t/dynamic-endpoint-reply/5216/2 "2023-08-14T17:01:23Z")

</div>

Hi @Ryan_Logsdon and welcome to the Losant Forums.

First, I see you are using an [Endpoint Reply Node](https://docs.losant.com/workflows/outputs/endpoint-reply/) instead of a [Webhook Reply Node](https://docs.losant.com/workflows/outputs/webhook-reply/); luckily the two are actually interchangeable minus some extra helpers we add to the config. That said I would still recommend switching to the Webhook Reply Node for your own readability.

As to your issue, my best guess is that the Reply Node cannot find the `replyId` on your payload. I bet you are either …

- Overwriting the entire payload, or the entire `data` object (where the `replyId` exists as a property), with the result of your Table: Get Nows Node, in which case the Reply Node cannot find that necessary unique ID at its default path of `data.replyId`. Or …
- You are configuring the Reply Node to [find the Reply ID](https://docs.losant.com/workflows/outputs/webhook-reply/#advanced-options) at a path on the payload where it does not actually exist.

If the first thing I mentioned is the culprit, I recommend storing your result at a different path; whenever I develop workflows, I try to leave the initial payload intact - in this specific case, the `data` object - and do any extension or enhancement of the payload under a different root-level property (usually `working`).

Let me know if that resolves your issue, and once again, welcome to Losant!

---

<div class="post-metadata">

**Author:** ![Ryan\_Logsdon](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@Ryan\_Logsdon](https://forums.losant.com/u/Ryan_Logsdon)\
**Post date:** [August 14, 2023, 6:26pm UTC](https://forums.losant.com/t/dynamic-endpoint-reply/5216/3 "2023-08-14T18:26:23Z")

</div>

Overwriting the data path in the payload was the issue, thank you!
