Webhook Not Sending Custom Field (Session Patch ID)

Hi all,

I’m using Glide’s “Trigger Webhook” action to send a payload to my backend, and I’m trying to include a custom field called session_patch_id as a shared secret for basic authentication.

In my test environment (like webhook.site), I can see the session_patch_id sometimes appears in the JSON payload — but other times it’s completely missing, even though the field is hardcoded into the webhook body.

Here’s a sample of the payload I’m expecting:

{
“order_id”: “abc123”,
“amount”: 7900,
“reader_id”: “tmr_XXXXX”,
“attempt_number”: 2,
“session_patch_id”: “update_batch_9472-patch”
}

but on many runs, it gets sent without the session_patch_id, like this:

{
“order_id”: “abc123”,
“amount”: 7900,
“reader_id”: “tmr_XXXXX”,
“attempt_number”: 2
}

Is Glide removing the field? The data is stored on a single row within my admin table, much like the reader_id.

1 Like

What type of column is it?
Is it a computed or non-computed column?

1 Like

non computed. Its just a text column.

That does seem odd.
What do you see in the Glide workflow run logs? Is it also missing from there?

You say that the value is stored in your “Admin” table. Is that also your User Profiles table?
If not, are you running the workflow in the context of your Admin table?
If not, how is the workflow accessing the value?

1 Like

The payload I showed before is what I see in the run logs when I send to webhook.site. When I send to my backend, my code is rejecting with a 401 because its not passing my authentication.

Admin table is my user profiles table yes.

I am not running my workflow in the context of the admin table. The workflow is accessing the value through user profile which has been working fine for the reader_id

1 Like

Only other thing I can think of is are you triggering the workflow as the same user every time?
And does that Session column have a value in every row in your User Profile table?
And again, what do you see for the data payload sent in the workflow run log?

Other than that, I’m about out of ideas…

1 Like

Yep. Triggering the workflow as the same user. Only one record in the user profile table.

1 Like

I have even tried deleting the session column and creating a new one. Renaming the column. Doesn’t work. I could try putting that value in a different table, but don’t love that as a solution. A bit bummed this functionality isn’t very consistent. It must be user error though right? Many others would be experiencing this behaviour too…

1 Like

Can you try clearing your cache and send it again? I don’t see any reason why reader_id would populate and not session_patch_id.

1 Like

What happens if you try it from the published App instead of the builder?

2 Likes

Im primarily testing from the published app. Actually, don’t think I’ve ever triggered it from the builder.

1 Like

Okay, so I just tried from the builder and the session id is in the run log:

{

“body”:{

“amount”:2400

“order_id”:“mYPfF5RxXyIURVHWOOfh”

“reader_id”:“tmr_************”

“attempt_number”:1

“session_patch_id”:“update_batch_9472-patch”

}

“endpoint”:“https://webhook.site/59959f73-67b8-4f95-a4f0-e0e7ea50a697

}

No clue why it worked that time.

1 Like

Does that session value ever change?
If so, when?

1 Like

Never changes.

I only created it because I realised I couldn’t send a secret key in glide headers. So created a secret key on the user table. Then I named it something “non obvious” like session_patch_id because I thought maybe glide didn’t like the fact that I was passing my secret key in the payload.

1 Like

Okay, that’s just weird.

Couple of suggestions:

  • Add a “Wait for condition” immediately before the Trigger Webhook, and check that the Session value is not empty
  • If you have a plan that supports it, use Call API instead of Trigger Webhook. Then you can pass a secret in the header.
1 Like

Thank you. I’ll try that. I don’t have the API plan… bit too pricey for my needs.

1 Like