# Import object or array in plugin

**URL:** <https://forum.bubble.io/t/import-object-or-array-in-plugin/165633>\
**Category:** Plugin builders\
**Created:** [August 21, 2021, 2:13pm UTC](https://forum.bubble.io/t/import-object-or-array-in-plugin/165633 "2021-08-21T14:13:55Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [August 21, 2021, 4:32pm UTC](https://forum.bubble.io/t/import-object-or-array-in-plugin/165633/6 "2021-08-21T16:32:45Z")

</div>

Hey! You’re right, i hadn’t read through that clearly so what i did was make another video!

check it out here!

> [@How to return objects from plugins (SSA, CSA, Element Update & Element Workflow Actions)](http://forum.bubble.io/t/how-to-return-objects-from-plugins-ssa-csa-element-update-element-workflow-actions/165646):
>
> This stumps so many of us when we first start with the plugin editor that I wanted to make a couple quick videos to demonstrate returning an object from your plugin. Video 1: Returning an object from a server-side action [https://vimeo.com/590273642](https://vimeo.com/590273642) – those notes I was writing are below. https://api.thecatapi.com/v1/images/search Getting an object back from the server side actions seems impossible at first but it actually really easy. Let’s start by creating a new plugin! We will start …

> [@estudio315](#):
>
> When doing the search it brings me an object (I think), and that object I can see in the console.log (), but I can’t bring it to a state.

You’ll define the state as an object using the API connector section of the plugin. It’s a hack to make new data types. You must create your data type to return the object in the state.

You set the exposed state to be the data type (or data model) and now you can publish your object as you’d like

---

_[View the full topic](https://forum.bubble.io/t/import-object-or-array-in-plugin/165633)._
