Hi @loulou3202741 and @fridayfailure,
Thank you for your patience and for providing detailed feedback. Based on the information shared, it seems that the issue is tied to how external data from your API is handled within the plugin, specifically when modifying events.
This issue occurs when events are retrieved from an API, and the plugin is unable to find the correct event ID, resulting in the “Data with ID ‘undefined’” error. As you mentioned, when using Bubble’s native database, the issue doesn’t occur, which further indicates that the issue is with how the external API data is being passed and recognized by the plugin.
Here’s what I suggest to help resolve this:
-
Check the Data Structure: Double-check the API response format to ensure that the event ID is being returned correctly and consistently with every API call. It’s crucial that each event has a valid ID, and it seems that the error may be due to the absence or mismatch of the event ID when modifying an event.
-
Event ID Mapping: Ensure that the event ID you are using in the workflow matches the ID in the data that is coming from your API. Sometimes, the plugin may not properly recognize the ID if it’s not mapped correctly or if the ID is not included in the API response. It may be useful to log the values from the API response before passing them to the calendar plugin.
-
Use the
[Event is modified]
Workflow Correctly: When using external data (API-based), ensure that you are triggering the correct workflow action to identify and modify the event. After the event is modified in the calendar, ensure that the correct API endpoint is being called to update the data in your external database. You can try adding a delay or a “Do when” condition to ensure that the data is fully retrieved and processed before the modification takes place.
-
Modify Data and Re-Render: As mentioned previously, using actions like “Re-render events” after modifying the event can help sync the changes back into the calendar. If there’s an issue with the event data being recognized, this may force the plugin to re-fetch the events and display them correctly.
-
Test with a Minimal Setup: As a final test, create a simple page or workflow with just the calendar and an API call for event data. This will help isolate the issue and check if it’s specific to the current app setup or a broader problem with how the external data is being passed.
Additionally, if you could provide a detailed breakdown of your workflow setup, I can pass all the information over to the dev team for further investigation. This will help us ensure we can assist you more efficiently in resolving the issue.
Let me know how these suggestions go, or if you can provide additional context on your current workflow setup, I’ll be happy to dive deeper into the issue.
Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
