cancel
Showing results for 
Search instead for 
Did you mean: 

oReturns based on oDeliveryNotes

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member201110
Active Contributor
0 Kudos

Hi Jorge,

The XML is case sensitive so maybe your issue is that you are using Basetype and not BaseType?

Kind Regards,

Owen

Former Member
0 Kudos

<?xml version="1.0" encoding="utf-8" ?>

<RetKey>247</RetKey>

EXCELENT Owen......

now work fine.

Thank you.

I need XML for Dummies

:o)=

Answers (0)