I have this GET API which works fine and all in the data configurator.
Though, when I want to use it in the app, it returns no value at all.
I check what values are returned by using an alert which uses the record of the GET call as the message.
The alert stays blank, just like the app variables that are set, based on the output of the GET record.
Screenshots below:
It all works well in the data configurator
This is how it looks on-page, when the page mounted
As you can see, for test purposes, the id here is the same as in the data configurator
Though, there is no output at all, the app variables are not set (although they’re connected to the output of the GET record as I always do)
Hi, what’s your app ID? What environment does this happen in? Android/iOS/web, which preview app version (you can check that by clicking on your email address in the preview)?
Okay – one thing you can do is to check for any network errors in Chrome inspector, you can open it when running the app in web preview by right-clicking on the page, choosing “Inspect” and going to the Network tab. There you can see all the network requests your app makes and their status.
I can also take a look at the logic flows if you provide me with the app ID. It’s found in the URL in Composer.
This happens if you for example delete the original Get record node, then the subsequent node (Set app variable) loses context of what is the “previous node”. You need to update the bindings so that they refer to the updated node every time you make some changes.
Btw, I bound the content of the alert message to the output object of Get record, you should now able to see there not only if it has passed but what’s come out of it:
So, I now do get the alert to show me all the GET record input, but it still does not set the app variable I want it to set. Though, the alert after the app variable is set also shows up (basically indicating that it should have worked. But it did not, cause I do not see it showing up anymore)
Hi, did you get the app variable to populate? I was thinking that the issue might be related to only setting values to a few of the app variable’s many fields, you could maybe try using a formula instead of the binding editor.