I'm having a problem with xml import with purchase lines.
I'd need to skip specific lines from xml file that has entryrowtype <> 0.
I know how to skip lines but this is a little problematic.
The 3rd party xml line has this entryrowtype under child tag of the rowtags so it gets the value after first line is init.
ex:
<invoice>
-> <header>
-> <row>
--> <entryrowtype>
Is there any better solution than making a temp table for the line data and fetch the lines that way?
K.S.
0
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I have the same requirement.
I just want to skip the first Line of CSV file as it's a title of columns.
How can I do that? Please provide the suggestion.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
If so, please try to first set the AutoSave property to "No" on the dataport DataItem, then create a global bool called i.e. glFirstLineSkipped and finally insert this code in the OnAfterImportRecord:
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
My problem has been resoved by the procedure as JUP has suggested.
Thanks again.
Ahmedabad, Gujarat, India
E Mail : ravi.thakkar@hotmail.com