How To Update A Node? #177
-
I am using PowerShell 7.0 and trying to change the audienceIds for a navigationNode.
My problem is that there is no update-function for my $node-object.
Is there another way to update this field with the audiences with PowerShell 7.0? When I compare the PowerShell 5 and PowerShell 7 i realize that one node object is from type: I try to use it with PowerShell 7 cause I use it with Azure Automation Function. It only allows PowerShell 7. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I just checked but have no problems with calling the update method on the node object in PowerShell 7.0.3, PowerShell 7.1.1 nor PowerShell 5. In all environments the node object is being returned a NavigationNode object. Are you running the code in a separate job within your function? And does that job return the node? PowerShell can serialize and deserialize the object between a job and the main calling script, which could explain the Deserialized. prefix in PS 7 in your Azure function. |
Beta Was this translation helpful? Give feedback.
I just checked but have no problems with calling the update method on the node object in PowerShell 7.0.3, PowerShell 7.1.1 nor PowerShell 5. In all environments the node object is being returned a NavigationNode object.
Are you running the code in a separate job within your function? And does that job return the node? PowerShell can serialize and deserialize the object between a job and the main calling script, which could explain the Deserialized. prefix in PS 7 in your Azure function.