Skip to content

Commit dfb05cd

Browse files
committed
request->requested
1 parent ef7aef9 commit dfb05cd

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

ServiceNow/Public/Update-ServiceNowRequestItem.ps1 renamed to ServiceNow/Public/Update-ServiceNowRequestedItem.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function Update-ServiceNowRequestItem {
7272
ServiceNowSession = $ServiceNowSession
7373
}
7474

75-
If ($PSCmdlet.ShouldProcess("Request Item $SysID", 'Update values')) {
75+
If ($PSCmdlet.ShouldProcess("Requested Item $SysID", 'Update values')) {
7676
$response = Invoke-ServiceNowRestMethod @params
7777
if ( $PassThru.IsPresent ) {
7878
$response

ServiceNow/ServiceNow.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ NestedModules = @()
6262
FunctionsToExport = @('Get-ServiceNowRecord','New-ServiceNowSession','Add-ServiceNowAttachment','Get-ServiceNowAttachment','Get-ServiceNowAttachmentDetail','Get-ServiceNowChangeRequest','Get-ServiceNowConfigurationItem','Get-ServiceNowIncident','Get-ServiceNowRequest','Get-ServiceNowRequestedItem','Get-ServiceNowTable','Get-ServiceNowTableEntry','Get-ServiceNowUser','Get-ServiceNowUserGroup','New-ServiceNowChangeRequest','New-ServiceNowIncident','New-ServiceNowQuery','New-ServiceNowTableEntry','Remove-ServiceNowAttachment','Remove-ServiceNowAuth','Remove-ServiceNowTableEntry','Set-ServiceNowAuth','Test-ServiceNowAuthIsSet','Update-ServiceNowChangeRequest','Update-ServiceNowIncident','Update-ServiceNowNumber','Update-ServiceNowRequestItem','Update-ServiceNowTableEntry')
6363

6464
# Variables to export from this module
65-
VariablesToExport = 'ServiceNowSession', 'ServiceNowOperator'
65+
VariablesToExport = 'ServiceNowSession', 'ServiceNowOperator', 'ServiceNowTable'
6666

6767
# List of all modules packaged with this module
6868
# ModuleList = @()

ServiceNow/ServiceNow.psm1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ $config = ConvertFrom-Json (Get-Content "$PSScriptRoot\Config\main.json" -Raw)
77
$Script:ServiceNowOperator = $config.FilterOperators
88
$script:ServiceNowTable = $config.Tables
99

10-
Export-ModuleMember -Variable ServiceNowOperator
10+
Export-ModuleMember -Variable ServiceNowOperator, ServiceNowTable
1111

1212
Write-Verbose 'Import everything in sub folders folder'
1313
foreach ($Folder in @('Private', 'Public')) {
@@ -28,7 +28,8 @@ $Script:ServiceNowSession = @{}
2828
Export-ModuleMember -Variable ServiceNowSession
2929

3030
$aliases = @{
31-
'Get-ServiceNowRequestItem' = 'Get-ServiceNowRequestedItem'
31+
'Get-ServiceNowRequestItem' = 'Get-ServiceNowRequestedItem'
32+
'Update-ServiceNowRequestItem' = 'Update-ServiceNowRequestedItem'
3233
}
3334
$aliases.GetEnumerator() | ForEach-Object {
3435
Set-Alias -Name $_.Key -Value $_.Value

ServiceNow/config/main.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"Name": "sc_req_item",
25-
"ClassName": "Request Item",
25+
"ClassName": "Requested Item",
2626
"Type": "ServiceNow.RequestItem"
2727
},
2828
{

0 commit comments

Comments
 (0)