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 update a CashBookEntry and how to use handles

0

In our system we have created a number of cashbook entries. These exist as records in our database and CashBookEntry entities in e-conomic.

When a user modifies a cashbook entry in our system, the corresponding CashBookEntry in e-conomic must also be updated. This can be done with CashBookEntry_UpdateFromData.

The problem is that we need to obtain a CashBookEntryHandle.

As far as I can see, we could either:

  1. List all cashbook entries and find the one to be updated by matching the content. Very inefficient indeed.
  2. Save the handle in the database returned when the CashBookEntry was created in e-conomic. But are the handles guarantied to be valid forever?

What is the right strategy?

A short introduction to the concepts of the e-conomic API will be very useful.

created Jan 27, 2015 by MichaelT
40% Accept Rate
Q 5 A 0 C 1

1 Answer

0
 
Best answer
Strategy B is THE way to do it. :-)

Handles are unique and do not change.

BR
answered Jan 27, 2015 by olej
selected Jan 28, 2015 by MichaelT
Visma e-conomic A/S
...