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

Run Schema job from API

Amar_Simha
Regular Contributor
Regular Contributor

Hi Team,

I am looking to run a schema job created in Saviynt using Saviynt REST APIs (run job trigger). 

Saviynt Enterprise Identity Cloud API Reference v23.4 (getpostman.com)

However, I am getting the "412 pre-condition failed" error with "trigger not found message".

Please share your views on resolution.

Amar_Simha_0-1701287762418.png

 

15 REPLIES 15

rushikeshvartak
All-Star
All-Star

Share your job config from control panel


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

Amar_Simha
Regular Contributor
Regular Contributor

@rushikeshvartak : Please find below.

Amar_Simha_0-1701335055242.png

 

@Amar_Simha Try below payload

{
"triggername": "fileUpload",
"jobname": "SchemaAccountJob",
"jobgroup": "Schema"
}

Check data in Data analyzer.

Sample query:

select triggername,jobname, jobgroup,jobid from ecmimportjob where triggername like 'fileUpload'

 

 

If this reply answered your question, please accept it as a solution and kudos.

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

{
    "triggername":"fileUpload",
    "triggergroup":"GRAILS_JOBS",
    "jobname": "SchemaAccountJob",
    "jobgroup": "Schema"
    
    }

rushikeshvartak_1-1701410226049.png

 

rushikeshvartak_2-1701410236398.png

 


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

Amar_Simha
Regular Contributor
Regular Contributor

@SumathiSomala : Thank you for your inputs, able to trigger job now.

Also, just for reference, can you please let me know if there is a table in Saviynt which we can refer to get the triggername,jobname, jobgroup for other types of jobs as well. I guess, ecmimport job will have only jobs which are executed and not new ones.

@Amar_Simha 

ECM Import Job Table (ecmimportjob): This table contains details about imported accounts or access (entitlements).
qrtz_triggers Table: This table stores information about the configured triggers.

qrtz_job_details Table: This table stores detailed information for every configured job.


qrtz_fired_triggers Table:  This table stores the status information about the triggers that have been issued and the relevant execution information about the corresponding job.

Refer below for more details.

Database Schema Reference (saviyntcloud.com)

 

If this reply answered your question, please accept it as a solution and kudos.

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

Amar_Simha
Regular Contributor
Regular Contributor

Thank you @rushikeshvartak @SumathiSomala  for your inputs.

Also, apart from ecmimportjob, I could not find any other table in the list of data analyzer.

@Amar_Simha Those tables will not visible in data analyzer

You have to generate the report using analytics query.

Just go through the OOTB analytics

example:

SumathiSomala_0-1701864990830.png

 

 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

You can use analytics to view additional tables & use OOTB tables.

 


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

Manu269
All-Star
All-Star

@Amar_Simha you need to run the queries via analtyics to get those details.

I believe there are few OOTB Analytics for the same.

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

Amar_Simha
Regular Contributor
Regular Contributor

Thank you @SumathiSomala @Manu269  for the details. Appreciate it.

Amar_Simha
Regular Contributor
Regular Contributor

@rushikeshvartak @SumathiSomala @Manu269 : I had one more query related to this. Latest 23.10 version of Saviynt supports filtering of SAV files to be processed from the jobs panel. Just wanted to check if we can pass those SAV file names as parameters from runjobtrigger API call?

Also, do we have 23.10 API documentation. latest I can find is of 23.8

Please share your views

 

API Documentation Master Link - https://docs.saviyntcloud.com/category/Dev-Ref

v23.10 API Link - https://documenter.getpostman.com/view/20052500/2s9YJeygdd

You can pass .sav file name in API check parameter name in browser console

rushikeshvartak_0-1702095062632.png

 


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

Amar_Simha
Regular Contributor
Regular Contributor

@rushikeshvartak  I have a job with the specific SAV file selected and I am running it from the UI to capture the parameter name. But. I am not able to find any related parameter.

Could you please help me on the same.

Amar_Simha_0-1702907619933.png

 

When you create new job can you check parameter name , i dont have latest version so unable to test


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