type: outgoing-configuration

name: Dynamics 365 Business Central - Sales Order

prototype: http-publisher

method: POST

payload: &{salesOrder}

payloadType: data

prototype: conditional

prototype: pattern

pattern: bcCustomer

prototype: empty


Dynamics 365 Business Central

type: http-client

prototype: base-uri

prototype: header-set

Content-Type: application/json

prototype: logger

formatter: full


type: http-authentication-configurator

prototype: generic

grantType: authorize

loggerFormatter: long


type: list-transformer

name: Dynamics 365 Business Central - Sales Order - Check Customer Existence

prototype: data

prototype: merger

prototype: http-transformer

$filter: email eq '&{customer.email}'


name: Dynamics 365 Business Central - Sales Order - Restructure Customer Payload

prototype: value-setter

key: bcCustomer

type: Person

currencyCode: EUR


name: Dynamics 365 Business Central - Sales Order - Create Customer

payload: &{bcCustomer}


name: Dynamics 365 Business Central - Sales Order - Restructure Sales Order Payload

prototype: chain

key: salesOrder

salesOrderLines: &{orderedItem}

prototype: node

prototype: list-mapper

prototype: list-inherit-from

lineType: Item

quantity: &{orderQuantity}

prototype: list-intersect-keys