You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ServiceNow/Public/New-ServiceNowCatalogItem.ps1
+15-18Lines changed: 15 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,8 @@
5
5
.DESCRIPTION
6
6
Create a new catalog item request using Service Catalog API. Reference: https://www.servicenow.com/community/itsm-articles/submit-catalog-request-using-service-catalog-api/ta-p/2305836
7
7
8
-
.PARAMETERCatalogItemName
9
-
Name of the catalog item that will be created
10
-
11
-
.PARAMETERCatalogItemID
12
-
SysID of the catalog item that will be created
8
+
.PARAMETERCatalogItem
9
+
Name or ID of the catalog item that will be created
13
10
14
11
.PARAMETERVariables
15
12
Key/value pairs of variable names and their values
@@ -24,12 +21,12 @@
24
21
ServiceNow session created by New-ServiceNowSession. Will default to script-level variable $ServiceNowSession.
if ([string]::IsNullOrEmpty($CatalogItemID)) { throw"Unable to find catalog item by name '$($catalogitemname)'" } else { Write-Verbose"Found $($catalogitemid) via lookup from '$($CatalogItemName)'" }
if ([string]::IsNullOrEmpty($CatalogItemID)) { throw"Unable to find catalog item by name '$($CatalogItem)'" } else { Write-Verbose"Found $($catalogitemid) via lookup from '$($CatalogItem)'" }
0 commit comments