Plugins - How to return Data?

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
};
}

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

try

return {
hash: hash
};

thanks

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