Different outcome for request history and debugging with Get All Input

Answered

Hi there,

So I'm trying to debug an error with handling payload from Get All Input. I cannot go any further as I'm getting two completely different results (outputs) for the same input values when I use Run & Debug and when I look at the Request history.

  1. Request history:

Here the output is:

{'message':'Unable to locate var: verification_id.response.result.url'}

The function stack executes pretty much the full scenario.

2. Run & Debug

When I copy the input from point 1 above and Run * Debug with it, I get the following result:

{'message':'Unable to locate var: payload.firstName'}

The function stack stops at the very beginning.

My use case:

I'm getting a payload from a Webflow form encoded in x-www-form-urlencoded and I'm trying to access each individual value like payload.email, payload.phoneNumber etc. The problem is that when the value is omitted in the form (for example phoneNumber is empty), there is no such field in the paylod (payload.phoneNumber does not exist) so I'm trying to get over it somehow by setting it the phoneNumber to null anyway as a variable. Unfortunately, because of the above error I cannot figure out a way of doing it properly.

4 replies