Snow-Shell / servicenow-powershell

PowerShell module to automate ServiceNow service and asset management. This module can be used standalone, with Azure Automation, or Docker.
Apache License 2.0
359 stars 170 forks source link

Is there a way to find/edit "Test Items" within ServiceNow? #195

Closed wwwb0n3zcom closed 2 years ago

wwwb0n3zcom commented 2 years ago

Is there a way to find/edit "Test Items" within ServiceNow?

Thank you,

-b0n3z

image

gdbarron commented 2 years ago

I'm not familiar with Test Items specifically, but if you right click on the item, select 'Copy URL to Clipboard' and then inspect it, that might give you a clue as to where the data lives.

It's most likely of the format https://instance.service-now.com/nav_to.do?uri=<table>.do?sys_id=<sys_id>. If so, you can then use Get-ServiceNowRecord -Table <table> to query the table or Get-ServiceNowRecord -Table <table> -ID <sys_id> to get the specific item.

To edit, you would use Update-ServiceNowRecord -Table <table> -ID <sys_id> -Values @{'field'='updated_value'}.

gdbarron commented 2 years ago

@wwwb0n3zcom, did the above help?