Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Export Analytics Result via Postman API

weixiangteoh
New Contributor II
New Contributor II

Hi , I have created a analytic for extract user who is onboard with condition of start date equal current date. There is result after run the analytics task in Saviynt Portal.

Just I would like to know, how to fetch the analytic result via Saviynt API ?  Based on the Saviynt API (https://documenter.getpostman.com/view/23973797/2s9XxwutWR#b821cc21-ee7c-49e3-9433-989ed87b2b03) I have tried to call using api below but not successfully.

{{url}}/ECM/{{path}}/fetchRuntimeControlsDataV2 

 

Example: 

Body 

{
    "requestor": "admin",
    "analyticsname": "Export Onboarded Users",
    "analyticsid": "1513",
    "attributes": {
        "statuskey": "0"
    },
    "max": "10",
    "offset": "15"
}
 
Response
{
    "msg": "runtime v2 analytics not found",
    "errorcode": "1"
}

Could anyone know how to output analytics via API ? Thanks

 

5 REPLIES 5

Manu269
All-Star
All-Star

Query the analyticsconfig es table and validate the type of analytics used?

Validate the analyticsid is correct?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

Hi Manish,

 

Yes, have check on the "analyticsconfig es" . 

Both ID and type is correct. 

ID: 1513  

Type: v2

It seems your report is not runtime.

How to validate runtime? icon in end of report name 

rushikeshvartak_0-1714711807646.png

 

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

PremMahadikar
Valued Contributor
Valued Contributor

Hi @weixiangteoh ,

Use URL: {{url}}/ECM/{{path}}/fetchRuntimeControlsData

Refer the documentation for mandatory body parameters for this call.

My postman screenshot:

PremMahadikar_1-1714647391684.png

 

If you find the above response useful, Kindly Mark it as Accept As Solution and hit Kudos

weixiangteoh
New Contributor II
New Contributor II

Hi @rushikeshvartak , after create a new analytics with type of "Runtime" , we able to retrieve the result via API. 

Thanks all for your input.