on 07-11-2007 10:29 PM
Hi, I'm try create a new oReturns based on oDeliveryNotes, but I have not had good results.
I work with DI-Server version 2007
I try with "AddObjectWithLines" operator
somebody has an example that works with DI-API ?
this is my code:
-
objectcode: oReturns
strXml:
<Documents>
<row>
<DocObjectCode>16</DocObjectCode>
<CardCode>86.740.500-3</CardCode>
<DocDueDate>20070706</DocDueDate>
</row>
</Documents>
strLinesXml:
<Document_Lines>
<row>
<ItemCode>Q3961A</ItemCode>
<BaseEntry>5594</BaseEntry>
<BaseLine>0</BaseLine>
<Basetype>15</Basetype>
</row>
</Document_Lines>
responses:
Property 'Basetype' of 'DocumentLine' is invalid
Internal error (-5002) occurred
when adding a oReturns WITHOUT making reference to a oDeliveryNotes, records successfully.
thanks in advance.
Jorge
Hi Jorge,
The XML is case sensitive so maybe your issue is that you are using Basetype and not BaseType?
Kind Regards,
Owen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.