-
I see there is a command Export-ServiceNowAttachment. Is there a way to attach a file to a newly created record or update a record with an attachment? If the latter, how would I get the sys_id of the newly created record (other than retrieving via the short description and possibly the date created)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
New-ServiceNowRecord has a |
Beta Was this translation helpful? Give feedback.
New-ServiceNowRecord has a
-PassThru
parameter to return the newly created record. If you want to create and add a file in one step, you can pipe one to the other, eg.New-ServiceNowIncident @params -PassThru | Add-ServiceNowAttachment -File file01.txt