API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

How to create "text lines" with QuotationLine_CreateFromData (SOAP)


According to the post:


It should be possible to create text/desciption lines, but i get the following error:

first try (no product, quantity = 0)

A product must be set before the quantity. (id=6bab1bb0-5421-40d5-a0f4-04c7b04ac814) 

second try (no product, no quantity)

The element 'QuotationLineData' in namespace 'http://e-conomic.com' has invalid child element 'UnitNetPrice' in namespace 'http://e-conomic.com'. List of possible elements expected: 'UnitHandle, ProductHandle, Quantity' in namespace 'http://e-conomic.com'. (id=dd95d59a-e092-4136-968f-c058f9b32609)

third try (with product, quantity=0)

Cannot be set to zero. (id=0e6a4040-d3cf-4bc7-8b9f-50fa0ac2f6d6) 

Please help :-)


created Jul 28, 2016 by Hoyer
0% Accept Rate
Q 14 A 2 C 12

1 Answer

Hi Hoyer

When creating text lines on sales documents you only set the text.
This does not mean that SOAP accepts missing elements though. Instead of "0" try using xsi:nil when you need to define a field as null.
answered Jul 28, 2016 by olej
Works perfect :-)

Thanks alot!
Visma e-conomic A/S