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

Trigger Schema Entitlement Job via API to process Entitlements_values

Amar_Simha
Regular Contributor
Regular Contributor

Hi All, 

I am trying to trigger Schema Entitlement Job via API. This job as per configuration requires to select the Schema File Job Type to be selected. We have created the job to "Import Entitlement_values". 

Job is running fine when is executed from UI. We are trying to trigger the same job from Saviynt "runjobtrigger" API. Job is failing for some reason. 

From the UI, we can see a difference that when the job is executed from UI, it is showing the File Name column as "Entitlement_values import". Whereas when triggered from API, shows "Entitlement import". Leaves me wondering if there is any additional parameter that needs to be passed to process the job.

Please find below details. Any feedback is much appreciated.

Amar_Simha_0-1702979096758.png

job Config.

Amar_Simha_0-1702979754886.png

 

 

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

Check which parameters are getting sent in browser developer console


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

Amar_Simha
Regular Contributor
Regular Contributor

@rushikeshvartak : I was able to figure out the param from browser developer console. Thanks for the inputs.

But just want to know if there is any documentation around this as this is required attribute for jobs.

Also, since we are taking it from browser, any chance UI code gets changed and this parameter might change in future? as this could break the code using this APIs.

please share your views.

 

There is no other option please share successful api body 


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

Amar_Simha
Regular Contributor
Regular Contributor

Thanks @rushikeshvartak for the update. In addition to jobname, triggername, jobgroup, we should also be passing "schemaEntitlementJobType" to specify if the import is for Entitlement values or owners or hierarchy.

Also, this seems to be listed as part of documentation, in the below notes under "Parameters for Job Trigger APIs". Sharing for reference.

Adding a new job (saviyntcloud.com)

Can you share final Working body for API


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

Amar_Simha
Regular Contributor
Regular Contributor

@rushikeshvartak : Please find below body.

Amar_Simha_2-1705567234991.png

 

 

 

Thanks close the thread by accepting answer 

 


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