← All work
Client project · Retail · Smart Solidarity

SmartBuy: supplier portal with Dynamics 365 and Shopify integration

A supplier portal for a retailer with a supplier network of approximately 2,000. Vendors can submit products for staff review; approved items are created in the ERP before they are published to the online store.

TypeClient project (via Smart Solidarity)
SectorRetail
RolePortal and integration development

Client work, shown with the client’s permission. The screens below are rendered from the project’s source code with invented demo data, so no client records appear. A live walkthrough of the system and its code is available on request.

Overview

A retailer with a supplier network of approximately 2,000 needed one place for vendors to submit products, for staff to review them, and for approved products to reach Microsoft Dynamics 365 Finance & Operations and the Shopify store without manual re-entry. The figure describes the retailer’s supplier network, not measured portal usage.

Problem

Product data arrived by email and spreadsheets, was typed again into the ERP and again into the store, and duplicates slipped through. There was no record of who approved what.

Role & ownership

I developed the portal, data model, review flow, n8n workflows and integration design. I also reviewed the client’s existing live automation and documented the faults I found.

Solution

  • Three roles in the system: ADMIN, STAFF and VENDOR, each with its own permissions.
  • Vendor lifecycle: invitation or registration, verification by OTP, and account status management.
  • Supplier directory with search, filters and contract management, including contracts that expire within 30 days.
  • Product submission form: SKU, model number, names and descriptions in English and Arabic, serial number, images, prices, category and attributes.
  • Duplicate check against the portal, Dynamics 365 and Shopify before a submission moves on.
  • Staff review: approve, request changes or reject, with a review history.
  • Bilingual content help: the Gemini API drafts English and Arabic copy from the manufacturer’s specifications, without inventing specifications.

Workflow

  1. The vendor is invited or registers, and verifies by OTP.
  2. The vendor submits a product; the portal checks it for duplicates across the portal, Dynamics 365 and Shopify.
  3. Staff review it and approve, request changes or reject. Every decision is logged.
  4. On approval the item is created and released in Dynamics 365 F&O.
  5. Only after that step succeeds, an n8n workflow publishes the product to Shopify as a draft.
  6. Scheduled n8n jobs keep data in sync and send the email notifications.

Architecture

SmartBuy architecture Vendors submit products in the Next.js portal, which checks duplicates against the portal, Dynamics 365 and Shopify. Staff review each submission. On approval the item is created and released in Dynamics 365 F&O first; only after that succeeds does an n8n workflow publish a draft product to Shopify. Gemini helps draft bilingual content from manufacturer specifications. Vendorinvite · OTP · status Supplier portalNext.js · PostgreSQL · Prisma roles: ADMIN · STAFF · VENDOR Staff reviewapprove · request changes · reject review history Dynamics 365 F&O1 · item created and released Shopify3 · draft product n8n2 · runs only after step 1 succeeds scheduled sync · emails Duplicate checkportal · Dynamics · Shopify Gemini APIbilingual drafts frommanufacturer specs Order is enforced: Shopify publishing never starts before the Dynamics 365 step succeeds.

Screens

Rendered from the project’s own source code with invented demo data. Every vendor, person, SKU and price shown is fictional.

Implementation

  • ERP first, store second. Publishing to Shopify is triggered only by a successful Dynamics 365 step, so the store never shows a product the ERP does not have.
  • Four separate supplier-portal workflows for validation, publishing, scheduled sync and email, so a fault in one does not stop the others.
  • The six n8n workflows mentioned in my Smart Solidarity experience refer to the inherited Dynamics 365 F&O–Shopify sync; the four workflows above belong to the supplier portal layer.
  • Audit of the existing automation: I found hard-coded credentials, a test limit left active, a fixed date filter that skipped edited products, and a missing write-back to the ERP.

n8n workflows

Drawn from the workflow exports.

Tech stack

Next.js 15, React 19, TypeScript, PostgreSQL, Prisma, n8n, Microsoft Dynamics 365 F&O, Shopify Admin GraphQL, Gemini API, Docker Compose.

Results

  • Delivered a working supplier portal and its associated workflow set.
  • The audit of the existing live automation turned up four concrete faults, each reported with its fix.

No operating metrics are claimed here, because none were measured in production.