Weweb-tables - API send response result to variable

Hi,

(I read How to load Open API response to a variable which is then displayed - #2 by luka)

In my API-workflow, I’m trying to change the value of a variable “API_update_result” to the value of SEND RESPONSE (at the end of the workflow).

my variable isn’t visible.


Hi @WimDC :waving_hand:

Just to clarify, the workflow you show in your screenshot is a backend workflow?

If that’s the case, you’re trying to change a variable in the frontend directly from a backend workflow, but this isn’t possible. The backend has no context of the frontend.

If you want to save a response from an API called through the backend into a frontend variable, then you would need to create a frontend workflow that has:

  • one action that triggers the backend workflow
  • then a “Change variable value” action that updates the variable with the value returned by the backend workflow.

Here’s a video showing what that might look like: https://www.tella.tv/video/updating-front-end-variables-with-backend-api-data-dn4x

Does that help?