1 Reply Latest reply on Sep 25, 2014 2:15 AM by nilsw

    Mapping XML feed to FileMaker



      Mapping XML feed to FileMaker

      Your post

      We want to develop an ERP type database for a small business niche in FileMaker.

      We need to update this database with an XML feed from our eCommerce system. What is the best way to map our XML feed from our shopping cart to the data elements in FileMaker so all the customer info, product and product variations, etc. come over accurately?

      Anyone with experience here?

      Here is a small XML feed sample:

      <OrderDate>2013-05-01 10:09:24</OrderDate>
      <BillingFullName>Steve Jobs</BillingFullName>
      <BillingCompany>Apple, Inc.</BillingCompany>
      <BillingAddress1>1 Infinite Loop</BillingAddress1>
      <ShippingFullName>Steve Jobs</ShippingFullName>
      <ShippingCompany>Apple, Inc.</ShippingCompany>
      <ShippingAddress1>1 Infinite Loop</ShippingAddress1>
      <ShippingMethod>Flat Rate</ShippingMethod>
      <PaymentMethod>Cheque Payment</PaymentMethod>
      <CompletedDate>2013-05-01 10:09:24</CompletedDate>

        • 1. Re: Mapping XML feed to FileMaker

          Hi Steve,

          you will have to dig into XSLT stylesheets for XLM import. There are quite a few sources that cover this topic, once you are familiar with the mechanics of XSL it's pretty straightforward. 

          On the FileMaker side there are (at least) two ways of importing data. One is to import all the raw data, in your case on the LineItems basis, into a temporary table an than in a second step iterate through all the records to insert or update your Orders and OrderlineItems tables. If you want to import directly into these you will have to run actually two imports using individual stylesheets for Orders an LineItems.

          Btw., your XML needs an additional OrderLineItem node inside the OrderLineItems array.

          Hope that helps,