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
if ([string]::IsNullOrEmpty($CatalogItemID)) { throw"Unable to find catalog item by ID '$($CatalogItem)'" } else { Write-Verbose"Found $($catalogitemid) via lookup from '$($CatalogItem)'" }
if ([string]::IsNullOrEmpty($CatalogItemID)) { throw"Unable to find catalog item by name '$($CatalogItem)'" } else { Write-Verbose"Found $($catalogitemid) via lookup from '$($CatalogItem)'" }
65
69
}
66
70
}
@@ -79,7 +83,7 @@ function New-ServiceNowCatalogItem {
Submit a catalog request using Service Catalog API
4
+
5
+
.DESCRIPTION
6
+
Checks out the user cart, based on the current check-out type (one-step or two-step). Reference: https://developer.servicenow.com/dev.do#!/reference/api/zurich/rest/c_ServiceCatalogAPI#servicecat-POST-cart-sub_order?navFilter=serv
7
+
8
+
.PARAMETERPassThru
9
+
If provided, the new record will be returned
10
+
11
+
.PARAMETERConnection
12
+
Azure Automation Connection object containing username, password, and URL for the ServiceNow instance
13
+
14
+
.PARAMETERServiceNowSession
15
+
ServiceNow session created by New-ServiceNowSession. Will default to script-level variable $ServiceNowSession.
16
+
17
+
.EXAMPLE
18
+
Submit-ServiceNowCatalogOrder
19
+
20
+
Checks out the user cart, based on the current check-out type (one-step or two-step).
21
+
22
+
.EXAMPLE
23
+
Submit-ServiceNowCatalogOrder -PassThru
24
+
25
+
Checks out the user cart, based on the current check-out type (one-step or two-step) and returns the request numbers as an object.
Write-Output"Checks out the user cart, based on the current check-out type (one-step or two-step).`n`nIf one-step checkout, the method checks out (saves) the cart and returns the request number and the request order ID. If two-step checkout, the method returns the cart order status and all the information required for two-step checkout."
0 commit comments