Is it possible to update data directly within a plugin?

Hi there,

I’m Ahmed, a backend software engineer. I’m relatively new to Bubble and was exploring ability to introduce custom code into Bubble through plugins.
I’m building a plugin for a case in one of my projects that requires a lot of data manipulation based on transactional APIs and was wondering if it is possible to alter data type objects directly within the plugin without having to modify the data and send it back out of the plugin then map the fields to a “Make changes to a thing” action.

Also, any idea on how can I pass things as output from a plugin? currently I’m using JSON encoded text and parsing it outside before passing data to other actions but this is not very flexible

Best,
A.M.

only with data api like you would do from an external system

backend actions can rerurn data, frontend actions can’t, elements can publish stated that can be accessed in the editor.

1 Like

Thanks @dorilama,

backend actions can rerurn data, frontend actions can’t, elements can publish stated that can be accessed in the editor.

Is it possible to return objects/DTs or list of objects/DTs?

you can return structured data as an object representing an app data type. there is a guide about this in the forum (don’t remember where) snd the hack to make it work. It goes without saying that it’s not something officially supported.

1 Like

Okay, thanks
I’ll search for it and post it here for future reference