1

How do I get a template id for a report

Topic: How do I get a template id for a report

I know this is probably a dumb question, but I don't see it anywhere in the documentation for reports. I'm pretty sure I need to report/run exec_report to get the data I need, but one of the params for that is the reportTemplateId. How do I get a list of templates available in my account so I can choose which template ID to use?

2

How do I get a template id for a report

Re: How do I get a template id for a report

You can use core/search_items for avl_resource with reports (0x2000) flag.

Params example:

{
    spec: {
        itemsType: 'avl_resource',
        propName: '',
        propValueMask: '',
        sortType: '',
        propType: '',
        or_logic: false,
    },
    force: 1,
    flags: 0x1 | 0x2000,
    from: 0,
    to: 0,
}