1

Remote API > svc=report/exec_report&: always ERROR 7

Тема: Remote API > svc=report/exec_report&: always ERROR 7

I am new on Remote API using. In this way, I would appreciate a detailed level of explaination as of now. smile

I am trying to execute a report but I always get ERROR 7 return. My user has enough permission over unit and report.

Maybe my mistake is on parameters being passaed:

"reportResourceId":18857164, //unit id
"reportTemplateId":1, // return of id field on search items looking for reportresources
"reportObjectId":0, //what to pass here?
"reportObjectSecId":0, //and also here?

Thanks in advance.

2

Remote API > svc=report/exec_report&: always ERROR 7

Re: Remote API > svc=report/exec_report&: always ERROR 7

Hello!

"reportResourceId":18857164, //unit id is not correct. In "reportResourceId" you need to specify id of resource where report is created, not unit id
"reportObjectId" is a unit id
"reportObjectSecId" is subitem ID (like driver, trailer or their groups), 0 - if the item has no subitems (if you execute report for unit or units group)

Please look here example and here full description

Diana Cheley
Wialon Hosting Expert
Gurtam
3

Remote API > svc=report/exec_report&: always ERROR 7

Re: Remote API > svc=report/exec_report&: always ERROR 7

Hello Diana. I appreciate your response.

Where can I find a list with reportTemplateId ?

params={    "reportResourceId":19244673,
        "reportTemplateId":????? <how to know the id of one specific report?>,
        "reportObjectId":19728894,
        "reportObjectSecId":0,
        "interval":{
            "from":1569283200,
            "to":1569346257,
            "flags":0
        }
    }&sid=0653353272297295a973e8159f769459

4

Remote API > svc=report/exec_report&: always ERROR 7

Re: Remote API > svc=report/exec_report&: always ERROR 7

Hello ladie! I already found the answer. Thanks