Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Microsoft Dynamics NAV Development Quick Start Guide

You're reading from   Microsoft Dynamics NAV Development Quick Start Guide Get up and running with Microsoft Dynamics NAV

Arrow left icon
Product type Paperback
Published in Dec 2018
Publisher Packt
ISBN-13 9781789612769
Length 210 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Alexander Drogin Alexander Drogin
Author Profile Icon Alexander Drogin
Alexander Drogin
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Getting Started with the NAV Development Environment FREE CHAPTER 2. Codeunits - Structuring C/AL Code 3. Tables - Creating Data Structure 4. Designing User Interface 5. Exchanging Data with XML Ports 6. NAV Event Model 7. Presenting Data in Reports 8. Debugging Your Code 9. Other Books You May Enjoy

Importing data from CSV files

CSV is the simplest way of presenting structured data. It is a text file where each line represents a table record, and record fields are separated with a comma—hence the name CSV. The data file is very compact: it does not carry any markup data except field delimiters, and the format is easily mapped to relational databases where tables are native data storage.

Although a comma is the default field separator in NAV XMLports, it is actually defined by object properties and can be changed, which turns the file into a DSV instead of a native CSV. Now, we will create an XMLport for importing customer payment data from an external text file with a semicolon as a field delimiter.

In the next example, we need to extend the customer payment table and add new fields to it, as follows:

Field No. Field Name Data Type Length
7 Journal Line Posted...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime