Sales Channel


One of the pillars of the Tinx connector is the Sales Channel.

The Sales Channel card contains key information needed for the connection with (a) webshop(s).

This is where for example the URL of the webshop is added as well as the authentication information such as bearer tokens.

To get to the Sales Channel, go to Integration > Sales Channel List.

Here you will can find a list of any Sales Channels that are set up, whether active or not.

To get to the card, select Edit in the banner.

Now on the card, you'll see multiple tabs. General is where you'll find the authentication information, E-Commerce and Settings is where you will find various settings and order event, and, finally, Processing Requests & Responses shows the two codeunits needed to process syncing between the connector and the webshop(s). 



In the E-Commerce tab you will find many settings that can influence the configuration of the connector., such as 'Records per Page' that defines how many records to process per sync and 'Default Customer Template' to select which template to be used for creating customers.


Order Events

Among these settings, several are housed under the banner 'Order Events after Import'. This list shows check boxes one can select to enable additional functionality from the connector. More information on Order Events can be found in this article.


Stock Formula

Another functionality that needs setup in the Sales Channel Card is the Stock Formula.

This is regularly used when the connector needs to send stock updates for products to a webshop. When set up, a report (11205302 TINX Item Stock) calculates the stock based on a formula (with or without conditions) and adds these values to a custom stock table (11205354 TINX Item Location Stock V2).

To see how to set this up, please look here.



To set this up, there are three areas in the connector that need setting up. Editing the Sales Channel Card, adding a report and adding/changing mapping for sending stock.


Sales Channel Card

For the card, select in the banner Sales Channel > Stock Formula.

There, you can add a code for the formula (e.g. Stock Formula 1) and a description. There, select the quantity field to use. 

The standard formula that Tinx uses is based on the following:

Item table (27): Inventory (field 68) - Qty. on Sales Order (85)

Of course, you are free to change the formula based on your needs. You can also select conditions, allowing you to define when a formula (and stock) is used and sent to the webshop or not.



A new message has to be created to send the stock values to the webshop. If a consultant has worked on your project, likely it will be found in the PRODUCT-OUT code. Below an example from a Magento connector, where the message is called M2R-020-STOCK. You can see the table from which we get the data in the message definition.



To add the report that is needed to calculate stock, head to 'Job Queue Entries'. There, select New in the banner and then select Object Type to Run to Report and Object ID to Run to 11205302.

Then choose which days and time slots you'd like the stock to be updated under Recurrence. Then add a Earliest Start Date (e.g. TODAY). Turn it on via Process > Set Status to Ready (if all the other steps have been completed).

Related to