Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Unable to successfully install batch package

Will Mathies
Tera Contributor

I have previously (March 2023) been able to execute a PowerShell script that used the CICD API - Batch Install to install multiple IRM applications automatically on fresh instances. Now (Aug 2023) the script no longer works.

1) I have read the API documentation - https://docs.servicenow.com/bundle/tokyo-api-reference/page/integrate/inbound-rest/concept/cicd-api....

2) I have tried using the REST API Explorer with the following RAW body:

 

{ "name": "TEST IRM Deployment",
 "packages": [
   {
     "id": "4a3281d053030200d23c9c25911c086f",
     "type": "application",
     "load_demo_data": false,
     "notes": "GRC: Policy and Compliance Management"
   }]
 }

 

However I receive the same error message that I am getting from PowerShell. 

Unable to successfully install batch package TEST IRM Deployment:Invalid or empty installation plan provided, nothing to install..

I see this message when using the API call  sn_cicd/progress, the initial API call indicates a successful call with a pending status. I have tried with only 1 application or with multiple, I have also tried different applications. Nothing changes. I get the error message and nothing is installed.

 

Please let me know if anyone has any advice on how to successfully perform a batch application install.

1 REPLY 1

sneha gaba
Tera Contributor

Hi Will,

Add Below parameter to the packages payload.

"requested_version": "[version of application]",

Thanks,
Sneha Gaba