Dear i tried to get elements but return null value on api integration.
Any suggestions?
Dear i tried to get elements but return null value on api integration.
Any suggestions?
You could start by providing the following:
I am referring to rest api extensions and I am using the latest veraion
Version number please. Versions change often daily and even several times during a day.
21.10.23
Not that it really matters in this case but just to support the point of frequent updates the version at this point is 21.10.24 (see Download | Manager). From your first post, it is not really clear what you are trying to achieve. There is no explanation of the steps you employed and what results you expected. As such it would be difficult to help. The improved API interface helps but as we all know API is not really well documented for Manager. So I hope that after you give some more details that we are able to help.
I am trying through extension and Javascript to extract per invoice details then transform them to xml and post them to Greek tax authorities. When I call to get the item from an invoice it returns null field. I should get it after load the invoice. I tried through extensions. Is something I am missing?
The subject is about API but now you refer to Extensions and Javascript. Screenshots, etc would help here as is quite confusing.
From the screenshot you just posted, I noticed the following:
Extension as far as I can tell work with documents like invoices and receipts and not with data tables.
The element id you have used doesn’t seem to exist and it should refer to an html element. In order to know the HTML ids used in a document – say a Sales Invoice – you can right click on the invoice and then Inspect (this works in Chromium based browsers but your browser may be different). There you can examine the HTML code to get your ids.
Extensions are still work in progress and therefore I don’t think that each element will have its own unique id, yet. Since the last time I’ve checked, there was little to no html tags with ids, but I’ll be happy to learn otherwise.
Still unclear what you try to do and what this has to do with API.