Blog • Announcements | Developer

Further Flows improvements

Last updated: 01 Jul 2019

We've been working hard recently to improve the developer experience when using the Moltin API to build an online store.

An important part of this is to look at how we can make working with custom data - Flows even easier. We're very excited to talk about some of the updates we're ready to ship!


Better flows functionality on carts & orders

One of the most reported issues with Flows was that the behaviour of Flow Fields on items in carts was unpredictable. We've shored this up so whether you're doing a GET, PUT or POST with any type of item in your cart, Flow Fields are attached to the correct objects.

You can also now attach Flow data to carts & objects more easily. While previously most of our users would add an item to a cart, then do a second request to add custom data (Flows), this can now be achieved in a single request, just pass the Flow data with the add to cart request:

This also works when checking a cart out. You can pass any custom data (Flows) that should be attached to the order:

Improved behaviour when creating/updating an entity with Flow Fields

In some instances when updating a core entity with Flow Fields that have validation rules. It was possible that the core entity would be updated and the flows validation would fail. In this situation, the user would get a 200 response and have no idea their Flow Fields were not updated. We've modified this behavior to return the error response code and validation error message.

When responding to PUT/POST requests that included Flows data, the values from the original client request were attached to the response, rather than the data returned from the Flows service. This meant that there could sometimes be slight differences in how the data was formatted. Coupled with the issue above, it could also mean that it looked like Flow data had been saved when it hadn't been saved because of a validation error.

Improved performance

We've streamlined the process for updating a Flow, meaning all PUT/POST requests for entities that use Flow Fields will see a performance boost.

We've made some changes that will allow us to tweak how Flows requests work even more, so that there is scope to improve performance again in the future.

Save Your Seat! Magento Migration Considerations

Discover best practices for migrating off of M1 from a Magento certified partner and decide if M2 is right for you.

From Our Blog

20 Jun 2019

Analytics for your Moltin store

Today we’re going to take a look at how to use best-in-class data warehousing and analytics solutions on top of Moltin, specifically in relation to orders and order items.

Read More
Matt Foyle
9 min. read in Developer
29 May 2019

What to consider when migrating eCommerce platforms

Even though you are well aware of the pitfalls of your current eCommerce platform - be it rigidity, technical debt or the inability to innovate quickly; the thought of re-platforming can be a scary...

Read More
Joanna Suau
9 min. read in Magento Migration | Developer | eCommerce
29 May 2019

Flows awareness month roundup: Atomic-level control over your data

We dedicated May to be Flows Awareness month. In case you don't know, Flows allows you to take control of your data by giving you the ability to customize it to suit your eCommerce project. For...

Read More
Leanne Clegg
9 min. read in Announcements | Developer