Replies: 2 comments 6 replies
-
|
Top work @gdbarron Will need to take the new version for a spin internally. Really pleased to see the progress being made with breaking changes also 🎉 |
Beta Was this translation helpful? Give feedback.
-
|
The following doesn't seem to work as intended or understood: Get-ServiceNowRecord -Table incident -Filter @('assigned_to' -eq 'UserNameHere') -Verbose I also want the ability to have multiple filters. The following doesn't seem to work either: Even a command like the following doesn't work: Is there something I'm missing? (Using ServiceNow module version 3.0.0 with PowerShell version 5.1) |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hi all. A lot of work went into this release and I hope it's useful. There are some breaking changes, but I've tried to keep them to a minimum as I move through some cleanup and consolidation. Please let me know if you find the new functionality helpful or any issues you might find given the number of changes.
Get-ServiceNowRecordIdproperty to easily retrieve a record by either number or sysid.ParentIdproperty to easily retrieve records based on the parent number or sysid. For example, to retrieve catalog tasks associated with a requested item executeGet-ServiceNowRecord -Table 'Catalog Task' -ParentId RITM01234567.Descriptionproperty to retrieve records based on a table specific description field. For many tables this field will be short_description, but will be different for others. For example, when performing this against the 'User' table, the description field is 'Name'.Idwithout providingTable,Get-ServiceNowRecord -Id inc0010001. To see the list of known prefixes, execute$ServiceNowTable.NumberPrefixafter importing the module.gsnr. With the above change, a Get can be as simple asgsnr inc0010001.Tableparameter inAdd-ServiceNowAttachmentandGet-ServiceNowAttachment.Idparameter toAdd-ServiceNowAttachmentandUpdate-ServiceNowRecordwhich accepts either number or sysid. Just as withGet-ServiceNowRecordyou can now provide justIdif it has a known prefix.Get-ServiceNowAttachmentto get attachments either via associated record or directly from the attachments table when you want to search all attachments.Get-ServiceNowAttachmentwhich can be really useful when searching across the attachments table.Update-ServiceNowNumberhas been deprecated and the functionality has been added toUpdate-ServiceNowRecord. An alias has also been added so existing scripts do not break.Get-functions except forGet-ServiceNowRecordandGet-ServiceNowAttachment. Table specific Get functions have been deprecated.Get-ServiceNowRecordInterimhas been created and all table specific Get functions have been aliased so existing scripts do not break. Please start to migrate toGet-ServiceNowRecordas these functions will all be deprecated in the near future.ServiceNowSession. You can still authenticate with Credential/Url, but must useNew-ServiceNowSession.Set-ServiceNowAuth,Remove-ServiceNowAuth, andTest-ServiceNowAuthIsSethave been deprecated.Get-ServiceNowAttachmentDetailtoGet-ServiceNowAttachment.Get-ServiceNowAttachmenttoExport-ServiceNowAttachment.Get-ServiceNowTableandGet-ServiceNowTableEntryhave been deprecated. UseGet-ServiceNowRecord.This discussion was created from the release v3 - Major release.
Beta Was this translation helpful? Give feedback.
All reactions