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

Update Unit (setUnit)

I want to update the unit number(pcs, pks, etc...) on my quotation line,


            echo "<h1>Enhedens nummer: ".$enhedensnr."</h1>";
            $opdater_linje_enhed = $client->QuotationLine_SetUnit(array('quotationLineHandle'=>$opret_linje, 'valueHandle' => $enhedensnr))->QuotationLine_SetUnitResponse;

Whats wrong with this one ?

I can echo the value via PHP, but i cant update it on e-conomic
created Feb 16, 2015 by ChrisR
100% Accept Rate
Q 3 A 0 C 0

1 Answer

Best answer

You need to use the Unit Handle and not Unit Number when setting unit.

When you know the Unit Number you can find the handle with Unit_FindByNumber.


answered Feb 18, 2015 by olej
selected Feb 18, 2015 by ChrisR
Visma e-conomic A/S