We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Trying to Create DB Import Job via API but it's not updating the connection

jsatish
Regular Contributor
Regular Contributor

Hi Team,

I am trying to create a DB Import job via API, but it's not updating the connection when we edit the Job. 
Jobs is created, but when connection name is not updated.

Calling API:  url/ECM/path/runJobTrigger

Request Body:

{
    "jobgroup""DATABASE",
    "triggername""AP12322434",
    "jobname""AccountsImportFullJob",
   "valueMap": {
        "CONNECTION":"DBConnect"
    },
    "createJobIfDoesNotExist":"true"
}
 
Screen Shot after the job creation:
jsatish_0-1676350344951.png

Kindly let us know if any issues with the request body.

Regards,

SJ

 
3 REPLIES 3

jsatish
Regular Contributor
Regular Contributor

You can ignore this. I got a solution using CreateTrigger

Request Body:

[  
   {  
      "triggers":[  
         {  
            "valueMap":{  
               "CONNECTION":"DBConnect",
               "connectiontype":"DB",
               "connectionid":7
            },
            "name":"DBAccessImport",
            "group":"GRAILS_JOBS",
            "jobName":"AccountsImportFullJob",
            "jobGroup":"DATABASE",
            "cronExp":"0 15 10 * * ? 2099"
         }
      ]
   }
]

rushikeshvartak
All-Star
All-Star

CreateTrigger is used to create job and runTrigger to run created trigger


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

jsatish
Regular Contributor
Regular Contributor

runTrigger can also be used to create a job as well. When you add the below attribute.
"createJobIfDoesNotExist":"true"