Problem with Local Storage Success Handler

I am using MySql code to put a variable into local storage

The MySql code is:

SELECT MAX(date2) AS max_date FROM table1.date2;

What should I put in the local storage success event to get max_date into local storage as MaxDate1 ?

Thank you.

Mike

1 Like

Hey @mdsmith1

You simply need to pass the key and value returned by your query into the Success event handler, and select Local Storage as the action to store it.

1 Like

Thank you so much.
I made a small change which gave me one value rather than an array as below:

{{ GetDateSql.data.max_date[0] }}

I will mark this as a Solution.

Thank you again.

Mike

2 Likes