Item: Sample Use Cases & Flows

This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.

Sync pizza menus across all sites

If you have several pizzeria sites that use your app you might need to sync menu across those sites. For example, if you have a new item called "Margherita", this change also needs to be reflected on other sites.

To sync the pizza menu across all sites:

  1. Call Get Item on the site where you created a new item.
  2. Extract the whole item object.
  3. Call Create Item for your other sites and pass the new item to each.
  4. Call Update Section and add the new item ID to the section.itemIds array.
Was this helpful?
Yes
No