Dynamics 365 F&O - Order

type: outgoing-configuration

prototype: no-action-publisher

prototype: conditional

prototype: pattern

pattern: orderingCustomer

prototype: empty


type: list-transformer

name: Dynamics 365 F&O - Order - Check Customer Existence

prototype: data

prototype: merger

prototype: http-transformer

payloadType: data


sample order

type: transformer-test

givenName: John

familyName: Doe

priceCurrency: EUR

street: Laan Corpus der Hoorn 200

addressCountry: NL

addressLocality: Groningen


name: Dynamics 365 F&O - Order - Restructure Customer Payload

prototype: value-setter

key: orderingCustomer

PrimaryContactPhone: &{customer.telephone || billingAddress.telephone || ''}

AddressLocationRoles: Business

value: now

prototype: format-date

toFormat: U

prototype: string-prepend

prepend: CUST-


name: Dynamics 365 F&O - Order - Create Customer

method: POST

payload: &{orderingCustomer}

$filter: CustomerAccountNumber eq '&{orderingCustomer.CustomerAccount}' and AddressLocationRoles eq 'Delivery' and AddressStreet eq '&{orderingCustomer.DeliveryAddressStreet}'


name: Dynamics 365 F&O - Order - Restructure Sales Order Headers Payload

prototype: chain

key: salesOrderHeaders

CustomerRequisitionNumber: &{orderNumber}


name: Dynamics 365 F&O - Order - Create Sales Order Headers

payload: &{salesOrderHeaders}


name: Dynamics 365 F&O - Order - Restructure Sales Order Lines Payload

key: salesOrderLines

value: &{orderedItem}

prototype: recursively-copy-values-to-children

prototype: node

key: salesOrderLine

SalesOrderNumber: &{SalesOrderNumber}

OrderedSalesQuantity: &{orderQuantity}


name: Dynamics 365 F&O - Order - Create Sales Order Lines

payload: &{salesOrderLine}