Skip to main content

Microsoft Dynamics NAV to iPaaS.com Invoice Mapping Documentation

How posted Microsoft Dynamics NAV invoices are captured into iPaaS.com as transactions, including fields, filters, and requirements.

Summary

When a Microsoft Dynamics NAV sales order is posted as an invoice, it can be captured into iPaaS.com through the Invoice To iPaaS.com mapping collections. The posted invoice is read from the SalesInvoices endpoint, converted to a transaction, and used to update the existing iPaaS.com transaction, along with its invoice line items and tracking numbers.

ID Format

Manual Sync ID Format. To capture a single invoice on demand, open the subscription's Manual Sync page in the iPaaS.com portal, select the Invoice To iPaaS.com transfer, and enter the Microsoft Dynamics NAV order number the invoice was posted from.

  • Pattern: the NAV order number

  • Example: SO002970326

External ID Format. The iPaaS.com transaction is matched on the NAV order number; the transaction retains its existing external ID.

Deleted Record Support

Not supported. The integration captures posted invoices into iPaaS.com only; deleting an invoice in Microsoft Dynamics NAV is not captured.

Custom Field Support

This collection supports custom fields, allowing additional Microsoft Dynamics NAV invoice fields to be captured into iPaaS.com transaction custom fields beyond the standard mappings.

Mapping Collection Status

Status: Enabled

Trigger Events: Automatic transfers are activated by the subscriber in the iPaaS.com subscription configuration's Inbound Data Flows section, by enabling this collection's events (Poll, Create, and Update). No automatic transfer runs until they are enabled there. Manual Sync (see ID Format) is available at any time regardless.

Duplicate or Conflicting Mappings

Other collections that affect the same record. The Invoice To iPaaS.com collection updates the same iPaaS.com transaction created/updated by the Sales Order To iPaaS.com collections — once an order is posted as an invoice in NAV, it is no longer available at the SalesOrders endpoint and is read from SalesInvoices instead. The invoice line and tracking child collections write the same transaction's lines and tracking.

Collision handling. Not applicable (configurable collision handling applies only to the Sales Order From iPaaS.com collections).

Duplicate Matching

The invoice updates the existing iPaaS.com transaction matched on the NAV order number; it does not create a second transaction.

Supported Child Collections

  • Update Microsoft Dynamics NAV Invoice Line Item TO iPaaS.com — captures invoice item lines.

  • Update Microsoft Dynamics NAV Invoice Tracking Number TO iPaaS.com — captures invoice shipment tracking.

System Caveats

Microsoft Dynamics NAV Caveats

  • The SalesInvoices OData web service must be published in Microsoft Dynamics NAV with the service name exactly SalesInvoices, or posted invoices cannot be polled. This endpoint is in addition to SalesOrders and may be missing from older installation instructions — confirm it is configured.

  • Invoices are read-only in Microsoft Dynamics NAV; the integration does not create or modify invoices in NAV.

iPaaS.com Caveats

  • The transaction the invoice updates must already exist in iPaaS.com (created by the order transfer), matched on the NAV order number.

Setup Requirements

Microsoft Dynamics NAV Configuration

  • Publish the SalesInvoices OData web service (Web Services), service name exactly SalesInvoices. See the Installation Instructions.

Subscription Settings — Polling

  • Transaction Poll Search Days and Poll Time UTC Adjustment govern the invoice poll window and the NAV UTC date-filtering compensation. See the Connections and Settings documentation.

Authentication

  • The integration authenticates using the connection credentials in the subscription settings.

Integration Flow

  1. The scheduled poll reads posted invoices from the Microsoft Dynamics NAV SalesInvoices endpoint.

  2. Each invoice is converted to a transaction; the integration locates the matching iPaaS.com transaction by NAV order number.

  3. The transaction header, invoice line items, and tracking numbers are updated in iPaaS.com.

Mappings

Update Microsoft Dynamics NAV Invoice TO iPaaS.com (Header)

iPaaS.com data type: Transaction

Mapping Filter

IsInvoice == true;

Filter Description. Only records that originate as posted invoices are processed — the integration sets IsInvoice to true for posted invoices. Non-invoice records are skipped.

Description. Updates the existing iPaaS.com transaction from the converted invoice. Every field carries over the value already computed on the converted transaction (DestinationValue.<Field>).

Mapping Type

Source Field (Microsoft Dynamics NAV)

Destination Field (iPaaS.com)

Description

Dynamic Formula

DestinationValue.CompanyId

CompanyId

Required (customer/company linkage). Carried over from the converted invoice transaction; the linkage is inherited from the originating order.

Dynamic Formula

DestinationValue.SystemId

SystemId

Required (automatic). Carried over.

Dynamic Formula

DestinationValue.TransactionNumber

TransactionNumber

Required. Carried over.

Dynamic Formula

DestinationValue.ParentId

ParentId

Recommended. Carried over.

Dynamic Formula

DestinationValue.CustomerId

CustomerId

Required (customer/company linkage). Carried over; the linkage is inherited from the originating order.

Dynamic Formula

DestinationValue.Type

Type

Required. Carried over.

Dynamic Formula

DestinationValue.Status

Status

Required. Carried over.

Dynamic Formula

DestinationValue.EmailAddress

EmailAddress

Recommended. Carried over.

Dynamic Formula

DestinationValue.DiscountAmount

DiscountAmount

Recommended. Carried over.

Dynamic Formula

DestinationValue.TaxAmount

TaxAmount

Recommended. Carried over.

Dynamic Formula

DestinationValue.ShippingAmount

ShippingAmount

Recommended. Carried over.

Dynamic Formula

DestinationValue.Subtotal

Subtotal

Recommended. Carried over.

Dynamic Formula

DestinationValue.Total

Total

Recommended. Carried over.

Dynamic Formula

DestinationValue.TotalQty

TotalQty

Recommended. Carried over.

Update Microsoft Dynamics NAV Invoice Line Item TO iPaaS.com

iPaaS.com data type: Transaction Line

Mapping Filter

Type == "Item" && No != ""

Filter Description. Only item-type invoice lines that have an item number are captured; other line types are skipped.

Description. Captures the posted invoice's item lines into the iPaaS.com transaction line items.

Mapping Type

Source Field (Microsoft Dynamics NAV)

Destination Field (iPaaS.com)

Description

Static

"Product"

Type

Required. Fixed line type.

Static

"Pending"

Status

Required. Fixed line status.

Field

No

Sku

Required. Line SKU, from the NAV invoice line item number; must resolve to an existing iPaaS.com product/variant when Type is Product.

Field

Description

Description

Recommended. Line description.

Field

Quantity

Qty

Recommended. Ordered quantity.

Field

QuantityInvoiced

QtyShipped

Recommended. Invoiced/shipped quantity.

Field

UnitPrice

UnitPrice

Recommended. Line unit price.

Field

Invoice_Amount

ExtendedPrice

Recommended. Line extended price.

Update Microsoft Dynamics NAV Invoice Tracking Number TO iPaaS.com

iPaaS.com data type: Transaction Tracking Number

Mapping Filter

!string.IsNullOrEmpty(PackageTrackingNo_SalesShipment)

Filter Description. Only lines that have a package tracking number are captured.

Description. Captures shipment tracking detail for the posted invoice into the iPaaS.com transaction tracking number.

Mapping Type

Source Field (Microsoft Dynamics NAV)

Destination Field (iPaaS.com)

Description

Field

PackageTrackingNo_SalesShipment

TrackingNumber

Recommended. Package tracking number.

Field

ShippingAgentCode

ShippingMethod

Required. Shipping method (shipping agent code); must match a Shipping Method configured in iPaaS.com.

Field

ShippingAgentCode

ShippingMethodDescription

Recommended. Shipping method description.

Field

Description

Description

Recommended. Line description.

Field

QuantityInvoiced

Quantity_Invoiced

Recommended. Invoiced quantity.

Field

Shipment_Line_No

Line Item Id

Recommended. Shipment line number.

Dynamic Formula

combines quantity, shipping agent code, and tracking number when all present

Partial Deliveries

Recommended. Pipe-delimited partial-delivery descriptor built from quantity, shipping agent code, and tracking number (see mapping notes for the formula).

Error Handling

For the catalog of subscriber-visible errors, see the Microsoft Dynamics NAV Error Messages article.

Testing & Validation

Test Scenarios

  1. Post an order as an invoice in Microsoft Dynamics NAV and run the poll; confirm the matching iPaaS.com transaction is updated with invoice totals, lines, and tracking.

  2. Confirm an order with no invoice is not affected by this collection (filter requires IsInvoice).

  3. Confirm a line without a tracking number does not produce a tracking record.

Validation Checklist

  • The SalesInvoices web service is published in NAV with the exact service name SalesInvoices.

  • The order's transaction already exists in iPaaS.com before the invoice posts.

Additional Notes

Related Documents

Did this answer your question?