Skip to content
ERP integration

Your customers on Microsoft Dynamics NAV order from your live catalog.

A C/AL codeunit calls Distrify, or middleware does it without touching NAV. Your stock, prices, lead times and compliance data land in the screen the buyer is already working in, no export, no portal, no second login.

Your customer
their ERP
Your catalog
your Distrify workspace
AsksSTM32F407 · qty 2,500
Answers0,1980 € · 3,224 pcs · 5 days
At a glance

What this integration actually is.

How it connects
A C/AL codeunit calls Distrify, or middleware does it without touching NAV.
Effort
Days with their NAV partner
Built by
Their NAV partner, or nobody
Direction
Outbound only
The mechanism

Three ways Microsoft Dynamics NAV can make the call.

NAV is out of Microsoft support, so nothing gets installed on the server. The call is outbound over 443 and .NET interop has to run server side (RunOnClient = false).

C/AL with .NET interop

HttpWebRequest from a codeunit. The standard route on NAV 2013 to 2018.

AL extension

On NAV 2018, the same HttpClient code that runs on Business Central.

Middleware

On older releases, an integration platform calls Distrify and writes back over NAV web services.

The call

What your customer writes, once.

Written in C/AL. One endpoint, two headers, a part number in and a priced, current answer back.

  • One endpoint for search, availability, pricing and orders
  • Two headers: a client id and an API key
  • No inbound connection to your network
// Codeunit 50100 "Distrify Lookup" · NAV 2013 R2 and later
// DotNet vars, RunOnClient = false:
// HttpWebRequest, HttpWebResponse, StreamWriter, StreamReader, Encoding
Url := 'https://distributor.distrify.io/api/method/distrify_studio' +
'.distrify_electronics.public_api.v1.components.search_keyword';
HttpWebRequest := HttpWebRequest.Create(Url);
HttpWebRequest.Method := 'POST';
HttpWebRequest.ContentType := 'application/json';
HttpWebRequest.Headers.Add('X-DISTRIFY-Client-Id', ClientId);
HttpWebRequest.Headers.Add('X-DISTRIFY-Api-Key', ApiKey);
StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream());
StreamWriter.Write(StrSubstNo('{"Keywords":"%1"}', Mpn));
StreamWriter.Close();
HttpWebResponse := HttpWebRequest.GetResponse();
StreamReader := StreamReader.StreamReader(HttpWebResponse.GetResponseStream());
Json := StreamReader.ReadToEnd();
// parse Json, then write price, stock and lead time onto the item
The contract

The same fields on every ERP.

The integration differs; the answer does not. Seventeen fields come back on every call, whichever system asked.

GroupFields
CommercialStock · Price breaks · MOQ · Pack quantity · Lead time
LifecycleLifecycle status · TARIC
Trade and customsHTSUS · ECCN · Country of origin · RoHS
ComplianceREACH · Pb-free · AEC-Q200 · EOL · NCNR
DocumentsDatasheet

Electronics buying has gone digital. Time your distribution did too.

Thirty minutes on your own parts: send us a price list and we show it running live across every channel.

We reply within one working day. No newsletter, no drip campaign.