Thank you for your helpful responses and alternative methods. I also reached out to the plugin creator who noticed a very simple fix which ended up working.
The core issue was that I was passing $.Experience to the second wrkflow, which caused Bubble to treat the entire list of JSON objects as a single text item. The fix was to change it to either Experience or $.Experience[:]. This adjustment ensured that the second workflow received the list as individual items rather than a single block of text.
After making that change, the second workflow processed each JSON object correctly, and the database entries were created with the expected values.
@boston85719 I appreciate the alternative suggetion for bulk creating entries using a single API call. This approach is definitely more efficient, especially for larger datasets, and I’ll probably implement it in future iterations to reduce workflow usage and optimise performance. It also makes sense to simplify the process further by using a server script instead of relying on multiple steps.
@guillaume.raballand Thanks for the additional details and example! I appreciate the heads-up about how Bubble’s API workflows handle JSON inputs, especially the limitation of only reading first level key value pairs. That clarification makes a lot of sense in explaining why I encountered issues with nested objects.
Thankfully, the JSONPath adjustment fixed the immediate issue, and I’ll definitely take your advice to explore the plugin’s documentation and demo more thoroughly to better understand its capabilities.
@mitchbaylis Yes exacly, my plan is to duplicate this workflow for each level.
Thanks again for the help
1 Like