We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e01ae3b commit 25d211eCopy full SHA for 25d211e
src/Authentication/Authentication/custom/common/GraphUri.ps1
@@ -114,7 +114,7 @@ function GraphUri_RemoveNamespaceFromActionFunction {
114
$Segment = $segment.Replace("microsoft.graph.","").Replace("()", "")
115
# Get resource object name from segment if it exists. e.g get 'updateAudience' from windowsUpdates.updateAudience
116
$ResourceObj = $Segment.Split(".")
117
- $Segment = $ResourceObj.Count -gt 1 ? $ResourceObj[$ResourceObj.Count-1] : $Segment
+ $Segment = $ResourceObj[$ResourceObj.Count-1]
118
$SegmentBuilder += "/$Segment"
119
}
120
$NewUri = $Uri -replace [Regex]::Escape($MatchedUriSegment), $SegmentBuilder
0 commit comments