Hello,
I have exported Sales and it's lines through AIF. Everything was ok. But now I want to have custom export. I know I can edit query for custom fields etc. But I need to edit appearance in exported file (like <SalesLines> tag should be named through export just to <Lines> and so forth). I can export current schema through AxdMyPojectService (Register that Service -> MyServiceName -> ServiceOperations -> Read -> Parameter Schema -> outbound). So, I have exported schema, can edit it to my custom style.. But how to make it work? I mean, how apply that custom schema to my AIF export? Is it possible?
Export_job (skipped variables declaration here)
while selec sales where sales.CustAccount =='1102'
{
aif.addEntityKey(ent.getEntityKey(sales));
break; //for test purpose need only 1 line
}
aifDoc = axdExp.readList(aif, null,
new AifEndpointActionPolicyInfo(),
new AifConstraintListCollection(),
conNull());
xmlDoc = XmlDocument::newXml(aifDoc);
xmlDoc.save(@'c:\Sale_Line.xml');
Thanks in advance