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.
0
Answers
salessetup.get;
currdataport.filename := salessetup."The File Name";
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.
salessetup.get;
exportsegmentcontact.FILENAME := salessetup."The File Name";
exportsegmentcontact.runmodal;