Is there a way to use sha256 modifier in Flow?

Markus10
Shopify Partner
2 0 1

Hi,

I try to push some data into google spreadsheets. But unfortunately I need to encrypt this data via sha256.

I'm aware that there is a liquid modifier for sha256, but it seems that this modifier does not work in flow.

Is there any other solution for this use case?

 

thank you

Replies 3 (3)

lilyliward
Shopify Staff
18 1 8

I think sha256 filter should be supported in flow. So, I just created a bug report for this problem. 

To learn more visit the Shopify Help Center or the Community Blog.

JDavis1
Tourist
5 0 0

Hello! Did you ever get to the bottom of this? I'm also getting this error when I try to use sha256 in Shopify flow (specifically, in a POST request via a 'Send HTTP request' step)

 

-----

The request was unsuccessful
Liquid error: undefined filter sha256

-----

Greenshot 2024-03-27 11.26.23.png

JDavis1
Tourist
5 0 0

For anyone else who discovers this thread, I've had the following response from Support via Email:

 

"The Flow app uses the base version of Liquid which doesn't support sha256 at this time." 

 

So it's not an error, it's just not yet in the tool.

 

I managed to find a workaround using the 'Run Code' tool and some pure JavaScript in the meantime. It's by no means perfect or ideal, but it works in lieu of any other options.

 

I hope this helps someone having the same issues as I was!