Web Connect Incoming Data Mapping

AI Doc Summarizer Doc Summary

Web Connect Incoming Data Mapping controls how incoming messages and values are transformed into Business Central fields. For each object in the incoming message structure you are able to define how data should be mapped, validated, transformed and applied to Business Central records.

Mappings are always linked to a specific object in the Incoming Data Object Tree.

Updating a mapping affects:

  • The current incoming message
  • All not yet validated messages
  • All future incoming messages

This ensures consistency across integrations.


Where Incoming Data Mapping is used #

Incoming Data Mapping is opened directly from: Web Connect Incoming Data Web → select object → Incoming Data Mapping

Here you see:

  • The incoming JSON key
  • Which BC table and field it maps to
  • Transformation and logic settings
  • Validation behaviour
  • Trigger and lookup rules

This is the primary tool for controlling how incoming data becomes actual Business Central documents.


How Incoming Data Mapping Works #

Each mapping row describes:

  1. Which value to read (JSON / JPath key)
  2. Where to write it (Table and field in Microsoft Business Central)
  3. How to transform it
  4. In which order it must run
  5. What happens if the record already exists
  6. Whether triggers or lookups should run

Mapping Basics #

These fields define fundamental mapping logic.

Basic Mapping Fields #

FieldDescriptionExample
JSON Key NameThe incoming field or JPathinvoiceAddress.city
Table No.BC table to update36 (Sales Header)
Field No.BC field to update10 (Sell-to City)
Set Value to RecordIf empty → value is not appliedSet "Stock-order" on Sales Header
Validation OrderExecution order; ensures dependenciesSet Item No. before Quantity
Execute After Underlying ObjectsRuns after child objects are createdUseful for totals or record-level fields
On Insert OnlyOnly applied on new recordsUse for Primary Key fields
Primary Key Auto IncrementAuto assigns incremental numbere.g. 10000 for Sales Line Line No.

Value Transformations #

Used to adjust, clean, convert or calculate values.

Transformation Fields #

FieldDescriptionExample
Numeric SumSum multiple JSON valuesPrice Excl. VAT + VAT Amount → Unit Price Incl. VAT
AbsoluteConverts negative to positive-1010
MinusSwitches sign10-10
Round ValueRounds decimals12.56712.57
Clear CharsRemoves special characters"ABC-123""ABC123"
Cut Out From PositionSubstring starting at pos."SE12345" with pos 3 → "12345"
Max LengthRestricts string length"This is long""This is" (max length 7)
Decode from Base64Converts Base64 to BlobIncoming "aGVsbG8=" → Blob "hello"

Lookup & Advanced Logic #

These fields retrieve or apply values from related records or templates.

Lookup and Logic Fields #

FieldDescriptionExample
Lookup from Other RecordFetch value from another BC tableLook up Customer Posting Group from Customer No.
Get Value from Dynamic Flow FieldRead FlowField dynamicallyGet Item Inventory from Item table
Set Value from TemplateApply Object Template rulesApply customer template based on incoming country "SE"
Set to External IDSave value as External IDStore external SKU in WC External Reference table
Get Value from Parent Record IDReads RecordID from parentLink Sales Lines to Sales Header automatically
Set Value From Related Field No.Read value from related BC fieldRead Posting Group from related customer
Related Web ObjectLink mapping to another objectUse payment object to populate payment lines
Related JSON Key NameIncoming key identifying related object"payment.capture.amount"
Value From Content Field No.Read value from WCM Content tableGet timestamp from content metadata

Triggers #

These fields is regarding triggering other messages or actions.

Trigger Fields #

FieldDescriptionExample
Trigger Outgoing DataPush outbound updateTrigger a stock update when inventory changes
Trigger Download with Ext. IDCreate download jobDownload order lines for order ID "12345"
Activate Poll for DownloadStart interval pollingAutomatically poll WMS for shipment updates
Deactivate Poll for DownloadStop interval pollingStop polling when order completes

Uniqueness & Filtering #

Uniqueness and Filtering Fields #

FieldDescriptionExample
Unique IdentifierUsed to detect duplicatesSKU used to check if Item exists
Unique Identity ActionWhat to do when duplicate foundUpdate record / Ignore / Raise Error
Case Sensitive FilterUse case-sensitive matching"SKU123a""SKU123A"
As Is FilterExact value filtering"A*B" treated literally, not as filter
No. Series IdentifierSelect number seriesChoose number series for Customer No.

Additional Record Logic #

Additional Fields #

FieldDescriptionExample
Integration VariableReads or writes variablesStore Order ID for later use
Update Integration ValueUpdate variable after processingUpdate last processed timestamp
Ignore if BlankPrevent overwriting with blankSkip blank address field updates
No ValidationSkip BC field validationSet item attributes without validation
Source IdentifierIdentifies message source"CENTRA", "SHOPIFY" or "Sitoo POS"
Document Totals FunctionControls totals validationRun totals when all lines are imported
Document Release ConditionRelease doc only if condition trueRelease order only if "readyToShip" = true
Is ObjectTreat value as objectParse nested JSON as structured object
Is ArrayTreat value as arrayExpected list of lines, vouchers, etc.

Examples #

Mapping incoming city to Sell-to City #

JSON Key: invoiceAddress.city
Table No.: 36 (Sales Header)
Field No.: 10 (Sell-to City)
Validation Order: 10

Mapping SKU to Item No. on Sales Line #

JSON Key: products[*].sku
Table No.: 37 (Sales Line)
Field No.: 6 (No.)
Set Value to Record: Enabled

Using Numeric Sum to combine price + VAT #

JSON Keys:
price.exVat, price.vatAmount
Result: BC unit price including VAT


Best Practices #

  • Start with fields required for Business Central table validation
  • Use Validation Order to control dependency chains
  • Use Condition List for branching logic (e.g., store type → customer mapping)
  • Use Text Mapping for translating codes and identifiers
  • Avoid overwriting fields by enabling Ignore if Blank
  • For lines: always set Primary Key Auto Increment for Line No.
  • Keep mapping minimal and only map fields actually needed

11. Related Documentation #

Scroll to Top