Issues with New-ServiceNowIncident inputdata #244
Replies: 1 comment
-
Figured it out. The field names and the values weren't correct. Used the api explorer to get a test incident to see what the fields and values were in the response. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't seem to get the fields to populate that are being added through InputData. Setting the urgency to 3 works, but Service provider, IT service, Service offering, and Contact Type do not. Is there something I'm missing? The account I'm using was granted the ITIL role and has permissions to the fields according to the ServiceNow Developer. Below is what I'm doing. Thanks for any suggestions.
$NewIncidentParams= @{
Caller = "Test User"
ShortDescription = "PowerShell test"
Description = "Just a PowerShell test"
AssignmentGroup = "Local IT Department"
Comment = "No action needed."
InputData = @{u_Service_provider = "IT Organization"
u_IT_service = "Example Service"
u_Service_offering = "Example Service Offering"
u_Contact_Type = "Self-Service"
urgency = 3}
New-ServiceNowIncident @NewIncidentParams
Beta Was this translation helpful? Give feedback.
All reactions