Web Connect Condition List

AI Doc Summarizer Doc Summary

Web Connect Villkorslista

Overview #

The Web Connect Condition List is where you define logical rules that influence how incoming data is interpreted, mapped or transformed before Business Central creates or updates records.
Conditions allow Web Connect to behave dynamically for example:

  • Change the Order Type based on the store name
  • Select different customers, payment methods, or shipping agents
  • Trigger different flows depending on values in the incoming message
  • Evaluate data both before and after field mapping
  • Combine multiple conditions using logical operators (AND, OR, NOT)

When Conditions Are Used #

Conditions are required when:

  • Incoming data varies by market, store, sales channel, platform or warehouse
  • You need to route different data to different fields, documents or customers
  • Business logic depends on ranges, thresholds, empty/not empty etc.
  • Data must behave differently when mapping, creating or updating documents

Examples include:

  • Retail vs wholesale logic
  • Map shipping agent based on service code
  • Identify POS vs eCommerce orders
  • Create Return Orders only when total is negative
  • Choose appropriate payment method
  • Set dimensions based on incoming metadata

How Conditions Work #

A condition is evaluated for every incoming object.
If the condition returns TRUE the associated mapping rule will execute.

A condition can evaluate:

  1. Incoming message values (JPath)
  2. Fields being mapped inside Microsoft Business Central (after mapping)
  3. Dynamic FlowFields (Microsoft Business Central standard function)
  4. Integration Variables
  5. Expressions combining multiple conditions

Conditions are evaluated in sequence using logical operators (AND / OR / NOT).


Condition Structure #

Condition Header (General) #

FieldDescription
CodeUnique identifier used in mapping
DescriptionWhat the condition does
Web ObjectWhich object this condition applies to
Table No.Which BC table the condition interacts with

Condition Lines #

Each condition consists of one or more lines that define the logic.

FieldMeaning
OperatorAND, OR, NOT, AND NOT, OR NOT
Set to TRUEManually force condition to true (for testing)
Calculated ConditionShows result of the evaluated line
JPath ValueValue taken from incoming message
Field No. / Field NameOptional: compare against a BC field value
Dynamic FlowFieldAllow comparison against a calculated field
Cut Out / Max LengthTransform incoming values before comparison
Comparison Operator=, <>, >, <, >=
Logic Value FormatText, Number, Boolean, Date, DateTime
Logic ValueThe expected value in the comparison

Supported Operators #

OperatorDescription
ANDAll conditions must be true
ORAt least one condition must be true
NOTInverts the condition result
AND NOTTrue if previous lines are true AND this line is false
OR NOTTrue if any previous line is true OR this line is false

Comparison Operators #

ComparisonMeaning
=Equal
<>Not equal
>Greater than
<Less than
>=Greater or equal

Logic Value Formats #

FormatExample
Text“WEB”, “UPS”, “store1”
Number1, 10.25
Booleantrue / false
Date2025-12-05
DateTime2025-12-05T12:30:00Z

Practical Examples (Retail + Ecommerce Oriented) #

Example – Store-Based Routing (Wholesale vs Retail) #

Goal: If store.name = “wholesale”, set Order Type = Wholesale Order
Used when a client receives orders from multiple sales channels.

Condition Lines:

JPathComparisonValue
store.name=wholesale

Condition result = TRUE → Incoming Data Mapping sets Order Type.


Example – Payment Method Based on Currency #

Goal:
If the order currency is EUR, use the payment method coming from paymentMethod.uri.

SourceComparisonValue
Currency Code (table value)=EUR

Condition result triggers mapping:
→ Map paymentMethod.uri → Payment Method Code


Example – Create a Sales Invoice Only When Total ≥ 0 #

Useful for POS or marketplace orders.

JPathComparisonValueFormat
moneytotal_gross_all>=0Number

If TRUE → Create Sales Invoice
If FALSE → Could trigger Return Order logic


Example – Shipping Agent Selection (FDX vs UPS) #

Based on incoming shipping code.

JPathComparisonValue
shippingAddress.country.code=FDX
OR shippingAddress.country.code=UPS

Condition triggers different mapping rules:

  • FDX → Shipping Agent = FedEx
  • UPS → Shipping Agent = UPS

Example – Split Logic Based on Document Totals #

Used to differentiate return flows from positive sales.

JPathComparisonValueMeaning
total.amount<0Negative → Return Flow

Example – Dimension Assignment Based on Market #

JPathComparisonValue
store.country=DK

Condition triggers:

→ Set Dimension “MARKET” = “DENMARK”


Best Practices #

  • Keep condition logic simple
    Use multiple condition lines rather than complex expressions.
  • Always preview values using “Show Source”
    This ensures your JPath references are correct.
  • Combine with Text Mapping
    Often required for cleaning incoming values before comparisons.
  • Use Table Field values when conditions depend on mapped BC data
    Example: Currency Code, Document Type, Location Code.
  • Name conditions by business purpose
    Example
    WEB_ORDER_TYPE
    POS_PAYMENT_RULE
    RETURN_FLOW_TRIGGER

Related Documentation #

These docs should be linked:

  • Web Connect Incoming Data Mapping LÄNK/RELATED DOCS
  • Web Connect Incoming Data LÄNK/RELATED DOCS
  • Web Connect Text Mapping LÄNK/RELATED DOCS
  • Web Connect Objects LÄNK/RELATED DOCS

Scroll to Top