rest api v1 - fetch single record
Aldevinas Katkus
3-29-19
Is it possible to fetch a single record using rest api version 1? with version 2 it is possible, I have already checked.
I am fetching items register and there is a connection error on the external app side and these lines in the hansa.log:


8.4 2017-11-25 (build 84190914)

2019-03-29 10:08:01 dump of call stack

2019-03-29 10:08:01 call stack entry: amainhal/WebDataAPI.hal: DOEXPORT_INVC
2019-03-29 10:08:01 call stack entry: amainhal/WebDataAPI.hal: WEBDATAAPI

There are over 16K items in the DB. I need only some items. Before fetching INvc I fetch PUVc (goods receipts) and there is nothing wrong with Goods receipts (no error messages in the hansa.log)
Giuseppe L.
3-29-19
Hello Aldevinas and thank you for reaching out to us with your enquiry.
The error you posted clearly shows the attempt of fetching to many data.
To pull only one record you should use: parameter filter.[FieldCode]=[value]
for example: field.Code=10001

Best Regards
Giuseppe
HansaWorld Italy
Aldevinas Katkus
3-29-19
Created byGiuseppe L.09:54 29 Mar 2019
Hello Aldevinas and thank you for reaching out to us with your enquiry. The error you posted clearly shows the attempt of fetching to many data. To pull only one record you should use: parameter filter.[FieldCode]=[value] for example: field.Code=10001 Be
It did not work, I guess your comment is valid for rest api v.2, not for version 1.
Giuseppe L.
4-1-19
Please report is as a bug.
According to our documentation the API should work.

Best regards,

Giuseppe
HansaWorld Italy
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Piotr Wycichowski
Hi, I checked option "Use External Mail Software" in setting "Mail and Conferences Settings" in module "Mail and Conferences". When I create an invoice email I have a ...
17:38 8 Aug 2025
Piotr Wycichowski
Hi, Is somebody experienced in necessary settings for successful connection to server using webclient. When I tried, I got warning in brower, that Web client settings for HTTPS is not setup. So I ...
12:59 21 July 2025