Skip to content

Update Additional Comments and send to requester #191

Answered by DrMarkX
DrMarkX asked this question in Q&A
Discussion options

You must be logged in to vote

I have figured it out! You need to use comments, set work_notes to false, notify to true, type to Additional Comments, and add a create_by.

if (!$SNOWCred) { $SNOWCred = Get-Credential -Message 'Enter ServiceNow Credentials' }
$snUrl = 'yourcompany.service-now.com'
New-ServiceNowSession -Url $snUrl -Credential $SNOWCred

Update-ServiceNowRecord -Table 'Catalog Task' -ID TASK123456 -Values @{"comments" = "These are sent to the requester.";"notify" = $true;"type" = "Additional Comments";"created_by" = $SNOWCred.UserName}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@DrMarkX
Comment options

@DrMarkX
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by DrMarkX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants