1

Reports Templates

Тема: Reports Templates

Hello,
https://sdk.wialon.com/wiki/en/sidebar/ … xec_report
regarding this Api am a bit confused what does this field mean reportResourceId
also about the templates is there a way to get a list of all the templates i have on my account and the objects under them ?

2

Reports Templates

(11/03/2019 16:15:01 отредактировано Diana)

Re: Reports Templates

Hello!

reportResourceId is id of element 'avl_resource' in Wialon. You can get it by request Search items by property - search any item by it's name, please look similar example here , in your request you just need to search element 'avl_resource'
To in response itemID you need to specify flags value = 1 - based flag. In the same request if you also specify flag Report templates
you'll get all reports (all templates) which created in this resource
To get all objects (units) under you account you can execute the same request to search element 'avl_unit'

Diana Cheley
Wialon Hosting Expert
Gurtam
3

Reports Templates

(13/03/2019 13:05:33 отредактировано mfathy)

Re: Reports Templates

chdi thanks for replying
am trying to execute the report and i keep getting Error 7
my request :
http://hst-api.wialon.com/wialon/ajax.html?svc=report/exec_report&params={"reportResourceId":AccountID,"reportTemplateId":1,"reportObjectId":UnitGroupID,"reportObjectSecId":0,"reportObjectIdList":[],"interval":{"from":1548104400,"to":1548536340,"flags":0}}&sid=SessionID


the accountID i got it from the avl_resource request you suggested and unitgroupID
please Advice

4

Reports Templates

Re: Reports Templates

mfathy пишет:

chdi thanks for replying
am trying to execute the report and i keep getting Error 7
my request :
http://hst-api.wialon.com/wialon/ajax.html?svc=report/exec_report&params={"reportResourceId":AccountID,"reportTemplateId":1,"reportObjectId":UnitGroupID,"reportObjectSecId":0,"reportObjectIdList":[],"interval":{"from":1548104400,"to":1548536340,"flags":0}}&sid=SessionID


the accountID i got it from the avl_resource request you suggested and unitgroupID
please Advice

Hello!
Please check :
1) with which token access you login - parameter access_type
2) user's access on resource to execute reports
3) is it created report with id = 1 - search resource by its' ID using request core/search_item]search item by  id with flags = 1 base flag + 8192 report templates

Diana Cheley
Wialon Hosting Expert
Gurtam