# \[Solved for now\] Is “Use results of previous step” possible with client side actions

**URL:** <https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361>\
**Category:** Plugins\
**Created:** [February 21, 2021, 1:19pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361 "2021-02-21T13:19:06Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [February 21, 2021, 1:19pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/1 "2021-02-21T13:19:06Z")

</div>

I am building a plugin that Uses a client side action to call Firebase and publish data as a custom bubble thing and access it as any other element state

But

I can’t figure out how to use that value in a workflow like with server side actions. With those you can `return {“stateName”, value}` and use the result in the next step in a workflow.

Is this possible for client side actions?

---

<div class="post-metadata">

**Author:** ![tanejachirag19](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tanejachirag19](https://forum.bubble.io/u/tanejachirag19)\
**Post date:** [February 21, 2021, 6:34pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/2 "2021-02-21T18:34:34Z")

</div>

I am also interested to know if it is possible or not. If yes, how?

---

<div class="post-metadata">

**Author:** ![pork1977gm](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pork1977gm/32/245627_2.png) [@pork1977gm](https://forum.bubble.io/u/pork1977gm)\
**Post date:** [March 13, 2021, 11:53am UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/3 "2021-03-13T11:53:09Z")

</div>

@vini_brito do you know if this is possible?

---

<div class="post-metadata">

**Author:** ![vini\_brito](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/vini_brito/32/22187_2.png) [@vini\_brito](https://forum.bubble.io/u/vini_brito)\
**Post date:** [March 13, 2021, 3:13pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/4 "2021-03-13T15:13:39Z")

</div>

Hi! Thanks for the mention 😉  
Nope, not with client side actions, I already asked Bubble team for that and many other things too, they’re all backlogged but no confirmation on if and when this and other features would be implemented.  
A sure fire way to use data from client side actions is to publish to a custom state in the plugin element and then immediately after it trigger a custom event from the plugin element.  
Then the workflow continues under the plugin event.

An example of the code would be:

```auto
instance.publishState("item_clicked", args.item.text)
instance.triggerEvent("item_selected")

```

There are more hackish ways if needed, but this is the main method and usually is the best approach.

---

<div class="post-metadata">

**Author:** ![pork1977gm](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pork1977gm/32/245627_2.png) [@pork1977gm](https://forum.bubble.io/u/pork1977gm)\
**Post date:** [March 13, 2021, 5:09pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/5 "2021-03-13T17:09:11Z")

</div>

Cheers Vini

---

<div class="post-metadata">

**Author:** ![dev12](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@dev12](https://forum.bubble.io/u/dev12)\
**Post date:** [September 9, 2022, 4:33pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/6 "2022-09-09T16:33:00Z")

</div>

How is this still not done?

---

<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:** [September 9, 2022, 11:42pm UTC](https://forum.bubble.io/t/solved-for-now-is-use-results-of-previous-step-possible-with-client-side-actions/137361/7 "2022-09-09T23:42:14Z")

</div>

This is the way still, unfortunately. Now that you know, build!
