Sage b7
Workist connects to your installation through the Sage b7 REST API. This requires Sage b7 version 2025.02 or later. Workist reads customers, addresses, contact persons, articles, customer article numbers and open offers as master data. Completed orders become orders (Aufträge) in Sage b7, requests for quotation become offers (Angebote). If you want, Workist checks the prices of an order against the Sage b7 price finding. Nothing is installed in Sage b7. You only register Workist as an app and set up a user for the access.
Overview
Prerequisites
- Sage b7 version 2025.02 or later. Older versions do not support the connection via API.
- Sage b7 with the REST API set up. You or your Sage b7 partner do the setup, see Setup in Sage b7.
- Workist is registered as an app in Sage b7, with permission for customers, addresses, contact persons, articles, orders and offers, see Setup in Sage b7.
- A Sage b7 user that Workist logs in with.
- Workist must be able to reach the URL of your installation's webservice. You grant the access, for example by allowing incoming traffic from Workist's IP addresses, see Setup in Sage b7.
Data flow
| Direction | Content | When |
|---|---|---|
| Sage b7 → Workist | Customers, addresses, contact persons, articles, customer article numbers, open offers | daily at 04:00 German time and on demand |
| Sage b7 → Workist | Sales price per order line, if the price check is switched on | when an order is processed and when someone changes quantity, unit, article or customer |
| Workist → Sage b7 | Order with lines, delivery and invoice address | as soon as an order is completed |
| Workist → Sage b7 | Offer with lines, delivery and invoice address | as soon as a request for quotation is completed |
What We Read from Sage b7
| Master data in Workist | Source in Sage b7 |
|---|---|
| Customers | Customers |
| Customer contacts | Contact persons of the customers |
| Delivery addresses | Addresses of the customers |
| Invoice addresses | Addresses of the customers (the same as the delivery addresses) |
| Articles | Articles |
| Customer articles | Customer part numbers from the order lines of the last three years |
| Open quotes | Offers in status "Angebot erfasst", per line |
- Workist does not read customers, addresses and contact persons marked as inactive. It also does not read contact persons and addresses of suppliers and prospects.
- Workist does not read addresses without an address id.
- Workist takes over articles with a sales block as inactive.
- Sage b7 has no list of its own for customer article numbers. Workist therefore takes over every customer part number that appears on an order line of the last three years, together with the part number of the line.
- Workist does not read offers whose validity has expired.
- Workist does not read customer-specific prices, unit conversions or framework contracts from Sage b7.
The field reference lists the fields Workist takes over in detail.
What We Write to Sage b7
Order from a purchase order
For every completed order, Workist creates an order in Sage b7:
- Header: customer, order number as customer order number, order date, delivery date as requested date, commission and project number. The order type comes from the setup; the order date in Sage b7 is the day of the transfer.
- Lines: article number as part number, quantity and unit, delivery date of the line as requested date, commission number and comment of the line. Sage b7 determines prices with its own price finding.
- Addresses: delivery and invoice address from the document. If the address is matched to an address of the customer from Sage b7, Workist sends only its address id. Without a match, Workist sends the address as text: company name (else name), street, postcode and city, as far as the document contains them.
Offer from a request for quotation
For every completed request for quotation, Workist creates an offer. It contains the same information as an order, with the request number and request date instead of the order number and order date. The offer is assigned to the customer, not to a prospect.
As the reference on the document in the Workbench, Workist stores the order or offer number from Sage b7.
The field reference lists the fields Workist fills in detail.
Setup in Sage b7
Setting up the REST API in Sage b7 is the customer's responsibility, with your Sage b7 partner if needed. Workist cannot do the setup for you. The instructions are in chapter 2 "Einrichten der REST API" (setting up the REST API) of the Sage b7 REST API handbook.
It is also your responsibility to give Workist access to the URL of the webservice, for example by allowing incoming traffic from Workist's IP addresses in your firewall. Your Workist contact provides the IP addresses.
Workist authenticates by login and token: Workist logs in with a Sage b7 user and the App Key and receives a token, which it uses to access the REST API. Before you set up the integration in the Workbench, Workist must therefore be created as an application in screen bv280:
- Register Workist as an app in screen bv280 (app registrations). Sage b7 generates the App Key, which you enter in the Workbench later.
- On the API permissions tab, allow the app to the access Workist needs: reading customers, addresses, contact persons and articles, reading and creating orders and offers and, for the price check, querying sales prices.
- In screen bv285, grant the user Workist logs in with the LOGIN right of this app.
If you regenerate the app secret or revoke the app's refresh tokens, Workist logs in again on the next transfer by itself. You don't need to change anything in the Workbench.
According to the Sage b7 documentation, using API functions deactivates a possible connection to accounting software by default. Clarify this with your Sage b7 partner if needed.
Setup in the Workbench
-
Open Settings → Business Systems (ERP) → Integrations and click Connect next to Sage b7.
-
Enter the connection:
Field Content Integration name any name Webservice URL address of the REST API of your installation: <protocol>://<server>:<port>/<webapp>/callin/api/v1b7 user, password user Workist logs in with App Key App Key of the Workist app from screen bv280 User group, company, factory, language login data of the user in Sage b7. Company 1, factory 1 and language de_deare prefilledOrder type (orders) order type (Auftragsart) of the orders Workist creates. Empty: Sage b7 default Order type (offers) order type (Auftragsart) of the offers Workist creates. Empty: Sage b7 default Check order prices against Sage b7, Compare against settings of the price check. Off by default Order channels, RFQ channels channels whose documents Workist transfers to Sage b7 -
Click Create. Workist logs in to Sage b7. If Sage b7 rejects the login, the integration is not saved and Workist shows the message from Sage b7.
-
Use Trigger master data update in the list of integrations to load the master data right away. Otherwise Workist loads it the following night.
When you edit the integration later, leave password and App Key empty if they stay the same. If you change login data or the webservice URL, Workist logs in again when saving.
How the master data reaches the channels and how Workist switches the channels to the integration is described in What All Connectors Have in Common.
Customizing the Field Mapping
What Workist writes into the order and the offer is defined by the integration's Output Studio, on the Order Output Studio and RFQ Output Studio tabs. Without changes, the standard mapping applies, shown in the Filled by default column of the field reference. The other fields you can map are listed there too, for example sales price, discount or payment terms. Agree changes with your Workist contact.
Regardless of the mapping:
- The customer number must be an account number made of digits.
- Every line needs a part number.
- Workist sets the UUID, order type and document date itself if the mapping doesn't fill them.
Price Check Against the Sage b7 Price Finding
If Check order prices against Sage b7 is switched on, Workist asks Sage b7 for every order line which sales price it determines for this customer, this article and this quantity, with your price lists, quantity breaks and customer discounts. The price at the order date applies, without an order date today's price. Workist checks the ordered unit price against this price with the check Unit price / gross price mismatch check (see Validation Checks). If someone changes quantity, unit, article or customer in the Workbench, Workist asks for the price again.
- Compare against defines what is compared: the unit price before discount (default) or the net price after the discounts Sage b7 determines for the customer.
- Sage b7 states the price per price unit, for example per 100 pieces. Workist converts it to one unit.
- The check Unit price / gross price mismatch check must be switched on in the channel.
- Without a customer number, Sage b7 determines no price. Workist then checks the lines without a target price.
- If Sage b7 cannot price a line, for example because the article is missing, Workist checks this line without a target price.
- If the ordered unit differs from the sales unit Sage b7 prices in, Workist also checks this line without a target price.
- If the price check is switched off, the check compares against the list price of the article from the master data.
Error Handling
If Sage b7 rejects an order or offer, the document appears among the open documents again, with the message from Sage b7. Workist does not retry automatically. Fix the cause, for example a part number unknown in Sage b7, and complete the document again after Reopen for assistance.
Without a transfer to Sage b7, Workist reports on the document:
- a missing customer number or a customer number that is not made of digits only,
- a document without lines or a line without an article number.
If Sage b7 rejects the login, for example because the password was changed, the transfer fails with the message from Sage b7. Enter the new login data in the integration and complete the documents again.
Limitations
- Workist only knows customer article numbers that were used in an order of the last three years.
- Workist does not convert offers into orders. Every order becomes a new order in Sage b7.
- Workist does not change existing orders and offers. If a document is corrected in Workist after the transfer, apply the change in Sage b7.
- Workist does not send the country of addresses, because Sage b7 uses its own country keys.
Field Reference
Fields Read
Customers
| Workist column | From Sage b7 |
|---|---|
client_id1 | konto |
client_id2 | mc |
company_name | name_1 |
misc | name_2 + name_3 |
address1 | strasse |
address2 | adr_zusatz |
zip_code | plz_str |
city | ort |
po_box | postfach |
domain | inetadr |
iln | iln |
vat | ust_identnr |
Workist does not take over the country, because Sage b7 uses its own country keys. The domain comes from the customer's web address.
Customer Contacts
| Workist column | From Sage b7 |
|---|---|
partition_id | konto |
contact_id | ansprnr |
first_name | name_2 |
last_name | name_1 |
phone | telefon |
email | email |
Delivery and Invoice Addresses
Both address types have the same fields.
| Workist column | From Sage b7 |
|---|---|
partition_id | konto |
address_id1 | anschrid |
address_id2 | anschrnr |
address_id3 | kurzbez |
name | name_1 |
misc | name_2 + name_3 |
address1 | strasse |
address2 | adr_zusatz |
zip_code | plz_str |
city | ort |
po_box | postfach |
phone | telefon |
Articles
| Workist column | From Sage b7 |
|---|---|
article_id1 | identnr |
article_id3 | ean |
description | ben |
description_boosted | ben1 + kurz_ben |
gross_price | listenpreis |
sales_units | me |
extra_data | var |
The variant is stored in the article's extra data.
Customer Articles
| Workist column | From Sage b7 |
|---|---|
partition_id | konto |
article_id1 | identnr |
article_id2 | kdidentnr |
description | ben_1 |
extra_data | var |
Open Quotes
| Workist column | From Sage b7 |
|---|---|
partition_id | konto |
offer_number | angebnr |
valid_from | ang_dat |
valid_until | datbis |
position_number | angebpos |
article_id1 | identnr |
article_description | ben_1 |
quantity | menge_vk |
unit | mevk |
unit_price | vkpreis |
Workist does not take over offer lines without a part number.
Fields Written
Listed are the fields Workist can send to Sage b7. The Filled by default column shows which of them Workist fills without further setup. The others can be mapped in the Output Studio. Order and offer number, prices without a mapping, totals and all other fields are set by Sage b7 itself.
Order – Header
| Field | Sage b7 | Filled by default | Note |
|---|---|---|---|
uuid | UUID | yes | Identifier Workist assigns to the document |
konto | Customer number (Konto) | yes | Customer number from the document. Required, digits only |
auf_art | Order type (Auftragsart) | yes | Order type from the setup. Empty: Sage b7 default |
auf_dat | Order date | yes | Day of the transfer |
best_nr | Customer order number | yes | Order number |
best_nr2 | Customer order number 2 | – | |
best_dat | Order date of the customer | yes | Order date |
best_sb | Order clerk | – | |
angebnr | Offer number | – | Offer the order is based on |
wunsch_term | Requested date | yes | Delivery date |
lief_term | Delivery date | – | |
kd_zeichen | Customer reference | – | |
ansprnr | Contact person number | – | |
kkomm_nr | Commission number | yes | Commission number |
projekt_id | Project | yes | Project number |
zb | Payment terms | – | |
lb | Delivery terms | – | |
vers_art | Shipping method | – | |
txt1 | Text 1 | – | |
txt2 | Text 2 | – | |
adressid_ls | Delivery address id | yes | Address id of the matched delivery address from Sage b7. Workist then does not send the delivery address as text |
anschrls | Delivery address number | – | |
anschrift_ls.name_1 | Delivery address: name 1 | yes | Company name, else name |
anschrift_ls.name_2 | Delivery address: name 2 | – | |
anschrift_ls.name_3 | Delivery address: name 3 | – | |
anschrift_ls.strasse | Delivery address: street | yes | Street and number |
anschrift_ls.adr_zusatz | Delivery address: address addition | – | |
anschrift_ls.plz_str | Delivery address: postcode | yes | Postcode |
anschrift_ls.ort | Delivery address: city | yes | City |
anschrift_ls.email | Delivery address: email | – | |
anschrift_ls.telefon | Delivery address: phone | – | |
adressid_rg | Invoice address id | yes | Address id of the matched invoice address from Sage b7. Workist then does not send the invoice address as text |
anschrrg | Invoice address number | – | |
anschrift_rg.name_1 | Invoice address: name 1 | yes | Company name, else name |
anschrift_rg.name_2 | Invoice address: name 2 | – | |
anschrift_rg.strasse | Invoice address: street | yes | Street and number |
anschrift_rg.plz_str | Invoice address: postcode | yes | Postcode |
anschrift_rg.ort | Invoice address: city | yes | City |
Order – Lines
| Field | Sage b7 | Filled by default | Note |
|---|---|---|---|
identnr | Part number | yes | Article number. Required |
var | Variant | – | |
kdidentnr | Customer part number | – | |
menge_vk | Quantity (sales unit) | yes | Quantity |
mevk | Sales unit | yes | Unit |
vkpreis | Sales price | – | Without a value Sage b7 determines the price |
pevk | Price unit | – | 1 = per 1, 2 = per 10, 3 = per 100 units |
rabatt | Discount (%) | – | |
wunsch_term | Requested date | yes | Delivery date of the line |
lief_term | Delivery date | – | |
kkomm_nr | Commission number | yes | Commission number of the line |
ben_1 | Description 1 | – | |
ben_2 | Description 2 | – | |
txt_kom | Line note | yes | Line comment |
Offer – Header
| Field | Sage b7 | Filled by default | Note |
|---|---|---|---|
uuid | UUID | yes | Identifier Workist assigns to the document |
konto | Customer number (Konto) | yes | Customer number from the document. Required, digits only |
satzart | Account record type | yes | 1 = customer |
auf_art | Order type (Auftragsart) | yes | Order type from the setup. Empty: Sage b7 default |
ang_dat | Offer date | yes | Day of the transfer |
anfr_nr | Request number | yes | Request number |
anfr_nr2 | Request number 2 | – | |
anfr_dat | Request date | yes | Request date |
datbis | Valid until | – | |
wunsch_term | Requested date | yes | Delivery date |
kommentar | Comment | – | |
ansprnr | Contact person number | – | |
kkomm_nr | Commission number | yes | Commission number |
projekt_id | Project | yes | Project number |
zb | Payment terms | – | |
lb | Delivery terms | – | |
vers_art | Shipping method | – | |
txt1 | Text 1 | – | |
txt2 | Text 2 | – | |
adressid_ls | Delivery address id | yes | Address id of the matched delivery address from Sage b7. Workist then does not send the delivery address as text |
anschrls | Delivery address number | – | |
anschrift_ls.name_1 | Delivery address: name 1 | yes | Company name, else name |
anschrift_ls.name_2 | Delivery address: name 2 | – | |
anschrift_ls.name_3 | Delivery address: name 3 | – | |
anschrift_ls.strasse | Delivery address: street | yes | Street and number |
anschrift_ls.adr_zusatz | Delivery address: address addition | – | |
anschrift_ls.plz_str | Delivery address: postcode | yes | Postcode |
anschrift_ls.ort | Delivery address: city | yes | City |
anschrift_ls.email | Delivery address: email | – | |
anschrift_ls.telefon | Delivery address: phone | – | |
adressid_rg | Invoice address id | yes | Address id of the matched invoice address from Sage b7. Workist then does not send the invoice address as text |
anschrrg | Invoice address number | – | |
anschrift_rg.name_1 | Invoice address: name 1 | yes | Company name, else name |
anschrift_rg.name_2 | Invoice address: name 2 | – | |
anschrift_rg.strasse | Invoice address: street | yes | Street and number |
anschrift_rg.plz_str | Invoice address: postcode | yes | Postcode |
anschrift_rg.ort | Invoice address: city | yes | City |
Offer – Lines
| Field | Sage b7 | Filled by default | Note |
|---|---|---|---|
identnr | Part number | yes | Article number. Required |
var | Variant | – | |
kdidentnr | Customer part number | – | |
menge_vk | Quantity (sales unit) | yes | Quantity |
mevk | Sales unit | yes | Unit |
vkpreis | Sales price | – | Without a value Sage b7 determines the price |
pevk | Price unit | – | 1 = per 1, 2 = per 10, 3 = per 100 units |
rabatt | Discount (%) | – | |
wunsch_term | Requested date | yes | Delivery date of the line |
lief_term | Delivery date | – | |
kkomm_nr | Commission number | yes | Commission number of the line |
ben_1 | Description 1 | – | |
ben_2 | Description 2 | – | |
txt_kom | Line note | yes | Line comment |