Navigate to Not working

Below Workflow is triggered when a button is clicked. Funny thing is sometimes it works and sometimes it doesn’t.

The intention, as you can see from below screenshot, is to first call a Xano API when clicking on a button. Then this Xano API will return a stripe checkout url, which can be accessed by binding with ‘Stripe session API.data.url’ (see Formula in right in blue from screenshot). Then the user will navigate to this url. However, as you can see from below, although the stripe url is successfully returned in log (in redbox on the left), you can see that under Navigate to, it is ‘Undefined’ which can also be seen as ‘undefined’ below Formula box where you can conduct bidning on the right. Why is this happening and how can i fix this? FYI - when i manually bind it for the first time, it works. If i test it again, it doesn’t work and looks like below.

Thank you

Hi @gbab48018 :waving_hand:

The url you are highlighting on the left is the result of the “Call Xano Stripe API” action, right?

If that’s the case, then I think you could bind to the result from the preceding action:

In the example above, I have an action that returns an object with a URL in there and, in the second action, I bind to the result of the first action.

Does that help?

Been watching your tutorial videos, and wow! This feels like a celebrity reponded to my post, so firstly thanks! :slight_smile:

Just letting you know that worked. That said don’t konw what the difference is between binding from Data tab and Workflow tab.. but as long as it works! Thanks again

1 Like

Haha glad it could help! :slight_smile:

I’m not 100% sure why your initial approach didn’t work because I can’t see the details of the “Request” call you made in the screenshot your shared. My guess is that you were binding to a collection but your request call didn’t actually refetch the collection and update the collection in WeWeb like it would with the “Fetch collection” action. The request call simply called the endpoint and sent the response to the workflow but didn’t refetch the collection.