Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SPLIT Incident IDs
- $IncidentID = "INC0010178~INC0010189"
- $SysID = "2b3b203edb2f4300479a7e7dbf961900~9d503cbedb2f4300479a7e7dbf96194a"
- $Incidents = $IncidentID -split '~'
- $SystemIDs = $SysID -split '~'
- $iLoopCount = 0
- $oTicketData = foreach($Inc in $Incidents)
- {
- "<BR>The Incident ID is $($Incidents[$iLoopCount]) <BR> The URL is - https://xxxxxxxx.service-now.com/task.do?sys_id=$($SystemIDs[$iLoopCount])"
- $iLoopCount++
- }
- #foreach ($oTicketDatum in $oTicketData) {$oTicketDatum.ToString()}
- #DEFINING VARIABLES FOR OUTLOOK
- $BodyHTML = "Dear Admin,
- <BR><BR>Below is the URL Activity and the current Response Times.
- <BR>The non-Working URL is HIGHLIGHTED in <font color=red>RED.</font>
- <BR>Incidents have been created in for your convenience.
- Out-String -InputObject $oTicketData
- <CENTER>$Outputreport</CENTER>
- <BR><BR>Regards,
- <BR>Support Team"
- $BodyHTML
Add Comment
Please, Sign In to add comment