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

QuotationLine - SetInventoryLocation

0
Hi.
I need to set the InventoryLocation in a quotation line, but I can't seem t figure out how to do it.

I use the following code (VB  Net):

dim ecoQuotationLine as Economic.Api.iQuotationLine.Create(ecoQuotation)
ecoQuotationLine.Product = ecoProduct
'' ----fill rest of quotation line

Now I wnat to call the SetInventoryLocation function described in the manual here: https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=QuotationLine_SetInventoryLocation

I would have thought I should do

ecoQuotationLine.SetInventoryLocation(ecoLocation)

but that does not exist.

Any help appriciated.

Thanks in advence
Jesper Carstensen
created Aug 12, 2014 by JesperCarstensen
0% Accept Rate
Q 2 A 0 C 2

1 Answer

0
Hi Jesper,

The "Set" prefix is internally in SOAP - using our .NET assembly, what you'd do is something like this (and assuming you've retrieved the inventory location you need into a variable called ecoLocation):

ecoQuotationLine.InventoryLocation = ecoLocation;

 

Best regards,
answered Aug 13, 2014 by Christian Estrup
Unfortunately ecoQuotationLine.InventoryLocation does not exist in the API.
It does indeed - otherwise, you wouldn't be able to see it in the WSDL, as per above :-)

It might, however, be that the .NET assembly you're using was generated prior to locations being exposed on quotation lines - in which case you'll simply need to re-consume the web service.


Best regards,
Thanks Christian

I do not consume any web services, I just include the API dll files in my solution.

The solution to the problem was to get the newest dll files from e-conomics developer site, so you still pointed me in the right directon.

Best regards
Jesper Carstensen

No related posts found

Network

Find all the documentation and resources you need to build great apps.
Go to Developer site

Newsletter

Get the latest news and important info from the e-conomic developer world.
Sign up now

Visma e-conomic A/S
...