Scorecard syntax
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2023 09:43 AM
Hello
Having some hard time using the Scorecard API here.
So here the requirement: I am trying to build a service portal page where I show some indicators in multiples tables for reports.
I need to make filter the returned data using the breakdown. In the Scorecard docs , it say to just send it in this format: <indicator_sys_id>:<breakdown_sys_id>:<elements_filter_sys_id or element_sys_ids>:<lvl-2 breakdown_sys_id>:<lvl-2 elements_filter_sys_id or element_sys_ids>:<aggregate_sys_id>;<domain_sys_id>.
This work great when you have only one breakdown element. But when I want to have multiple elements, it doesn't work. I may say maybe a syntax issue or not.
But I tried sending these example:
<indicator_sys_id>:<breakdown_sys_id>:<element_sys_id>
<indicator_sys_id>:<breakdown_sys_id>:<element_sys_id1>,<element_sys_id2>
<indicator_sys_id>:<breakdown_sys_id>:<element_sys_id1>;<element_sys_id2>
<indicator_sys_id>:<breakdown_sys_id>:<element_sys_id1>^OR<element_sys_id2>
But as you can guess, it doen't work. So I tried using the filter option even though, this is not what I want as I want the filter to be applied on per request.
The first issue I had is figuring out how it work because giving each parameters(sysparm_uuid, sysparm_breakdown, sysparm_elements_filter) its value is not enough. you have to have this in order for it to work:
sysparm_uuid: <indicator_sys_id>:<breakdown_sys_id>:<elements_filter_sys_id>
sysparm_breakdown: breakdown_sys_id>
sysparm_elements_filter: elements_filter_sys_id>
Like why should we have this repetition. Why not give each parameter its value? Why should we have to mention it in two places? anyways
The second issue I am having with the filter is that I cannot get the property(which has my sys_ids).
So what I am trying to do is to request a scores using a breakdown with multiple values. can someone help with the correct scorecard syntax? Thank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2024 04:38 AM
Hi,
did you solve it?
I have the same question.
Thank you.