# Plugins - How to return Data?

**URL:** <https://forum.bubble.io/t/plugins-how-to-return-data/297983>\
**Category:** Need help\
**Created:** [December 16, 2023, 5:01pm UTC](https://forum.bubble.io/t/plugins-how-to-return-data/297983 "2023-12-16T17:01:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![augusto1](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@augusto1](https://forum.bubble.io/u/augusto1)\
**Post date:** [December 16, 2023, 5:01pm UTC](https://forum.bubble.io/t/plugins-how-to-return-data/297983/1 "2023-12-16T17:01:41Z")

</div>

Hi There !  
Trying my first plugin… simple question, how to return data?  
Not working…  
Action Server Side.

My code…  
async function(properties, context) {  
const crypto = require(‘crypto’);  
const secret = ‘’;  
var text = ‘Ola’;  
const hash = crypto.createHash(‘sha256’, secret).update(text).digest(‘hex’);  
console.log(hash);  
return {  
hash: properties.hash  
};  
}

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/4/a/4aa06fcb995f970f2acc396270f28f7a42e2e15c.png)

---

<div class="post-metadata">

**Author:** ![reachvijayk79](https://avatars.discourse-cdn.com/v4/letter/r/7feea3/32.png) [@reachvijayk79](https://forum.bubble.io/u/reachvijayk79)\
**Post date:** [December 16, 2023, 10:47pm UTC](https://forum.bubble.io/t/plugins-how-to-return-data/297983/2 "2023-12-16T22:47:49Z")

</div>

> [@augusto1](#):
>
> hash: properties.hash

Hi  
Can you try this instead of  
return {  
hash: properties.hash  
};

try

return {  
hash: hash  
};

thanks

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 24, 2024, 5:02pm UTC](https://forum.bubble.io/t/plugins-how-to-return-data/297983/3 "2024-02-24T17:02:06Z")

</div>

Closed on February 24, 2024, 5:02pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
