September 25, 2024

Flow: Write better scripts with autocomplete and contextual details in Run code

The Run code action in Flow has an improved and more helpful experience, with modern code editing features including autocomplete and details on hover.

Screenshot of autosuggest

When authoring code, the editor can now dynamically type the input parameter in the main function of the script, allowing for changing the query and then suggesting available values. This helps write code faster by suggesting possible completions for partially typed words and minimizes the likelihood of errors.

Screenshot of type on hover

Hovering over code elements provides instant access to type information, making clear acceptable values and reducing errors.

For more information about how it works and limitations, visit the documentation. For questions and feedback, post to the Shopify community.