How to convert a DataStore to a String? Flow is having an unexpected behavior

I would put a hidden text input inside a standard server connect form, and set its dynamic value to be a stringified version of the data store data using the .toJSON() formatter.

Then the first action of your server connect is to reverse the process…use a set value that is the $_POST.your_hidden_input_name.parseJSON(). This will give you the complete data store as a manageable object. If you set the Data type of the set value to Object, you can then define the keys of your datastore so you can easily pick them in the data pickers.

Here is a post with some details on how this can be accomplished:

3 Likes