Forum Academy Marketplace Showcase Pricing Features

Returning JSON data from plugin to app

Hello,
I’m pretty new to making plugins on Bubble.
Currently I’m making a custom plugin with Mapbox because the current plugins do not fit my usage.
Basically what I’m trying to do is send some data from an object I created in the database to a plugin and using that data to create a marker on the map.
The plugin should return the generated coordinates to the app and save those coordinates to the object I made in bubble database.
I can send the data to an Element in the plugin, but I have no idea how to send data back to the app this way?

Haven’t found anything on the internet, does someone know how would I be able to do so?