Retrieve custom variables from ServiceNow Task #138
-
Hi There, I'm using Get-ServiceNowRecord to retrieve all the fields for a task. This works great for all the default fields, but I don't see any of my custom variables in there. Is there anyway to retrieve my custom variables using Get-ServiceNowRecord? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 15 replies
-
Hi @emarzanoBNY. I've put something together to grab these values. Do you mind putting it through it's paces? The branch is https://github.com/Snow-Shell/servicenow-powershell/tree/get-custom-variables and the new property is |
Beta Was this translation helpful? Give feedback.
Hi @emarzanoBNY. I've put something together to grab these values. Do you mind putting it through it's paces? The branch is https://github.com/Snow-Shell/servicenow-powershell/tree/get-custom-variables and the new property is
-IncludeCustomVariable
onGet-ServiceNowRecord
. I've tested on PSv5, but not 7 yet, and working well.