Hi everyone,
I am trying to get the following workflow going, from which the steps marked with I am struggling with:
- Get data from Google Places with a Nearby Search and display them in a repeating group
- User clicks on any of the returned values which should trigger the following:
a) "Create a new thing"with some of the Google Places attributes, if the Google Place “id” is not created yet (in order to avoid duplicate entries.
b) Navigate to a detailed page with Type of Content: Google-Place which would show more details about this Google Place - On the second page rate products from this Google Place and store them in a database (thats also why I want to store the Google Place as described in 2a)
I have tried multiple ways to get this workflow to function but am struggling with the two options I have currently in my example app (https://bubble.io/page?type=page&name=google-places&id=product-ratings&tab=tabs-1)
- “Create a new thing”-Button workflow: Here I create a new thing checking for duplicates based on “id”, when clicking the button, then redirect to the page sending the Google Place data. Issue with this: When a duplicate Place is clicked, then no data will be send to the page, because of the “Only when” exception.
- “Create a new thing with API Workflow”-Button: Similar workflow as above, just that I am using an API workflow to store the data. Issue with this: The data to be send is not matching and I cannot find a way to solve this.
Anybody have any great ideas how to solve this? Maybe it even works without saving the Google Place and pulling data dynamically?