Hi Team,
I am working on updating incident form in SCSM through a PowerShell script.
I have the value of a variable "$ResponseObject.Result" like below
![119345-image.png][1]
I would like to store the sys_id and SNOW ticket number in one of the field in the Incident form in SCSM. But the below code is not working. Any help is highly appreciated.
if ($Responseobject.result.status -eq "inserted")
{
$UpdateAlternateContact=@"
sys_id=$Responseobject.result.sys_id
SNOW Ticket Id=$Responseobject.result.number
"@
}
Set-SCSMObject -SMObject $IO -Property "AlternateContactMethod" -value $UpdateAlternateContact
Any help is highly appreciated.
Regards,
Jansi
[1]: /answers/storage/attachments/119345-image.png