Get the file path from Sales and Recievable setup field for Dataport export.

Jacob1227
Member Posts: 128
Hi all,
I have exported customers as a CSV file with the help of Dataport. Here I have to give the path for the file to export.
But, I want to get the file path from a 'Sales and Receivables Setup' table's field (I have created one field called 'file path' in 'Sales and Receivable setup' table).
So how to code to get the file path from that field to export?
Please suggest me some steps.
Thanks in Advance,
Jacob A.
I have exported customers as a CSV file with the help of Dataport. Here I have to give the path for the file to export.
But, I want to get the file path from a 'Sales and Receivables Setup' table's field (I have created one field called 'file path' in 'Sales and Receivable setup' table).
So how to code to get the file path from that field to export?
Please suggest me some steps.
Thanks in Advance,
Jacob A.
0
Answers
-
on pre dataport or on init dataport add:
salessetup.get;
currdataport.filename := salessetup."The File Name";0 -
Hi Tally,
Thank you. I have done it. Can you please suggest me some code to do the same process using code unit(Calling a Dataport from Codeunit).
Thanks in advance,
Jacob A.0 -
Sure:
salessetup.get;
exportsegmentcontact.FILENAME := salessetup."The File Name";
exportsegmentcontact.runmodal;0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions