{"id":1931,"date":"2010-11-03T07:01:08","date_gmt":"2010-11-03T06:01:08","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=1931"},"modified":"2010-11-03T11:02:11","modified_gmt":"2010-11-03T10:02:11","slug":"send-e-mail-to-affected-user","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=1931","title":{"rendered":"Send e-mail to affected user"},"content":{"rendered":"<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail03.png\"><\/a>In this post I will show you how to build a simple task to send a e-mail to the affected user of a incident. The e-mail will be logged in the action log of the incident.Please note that this will not affect how you handle incoming e-mails, it will only give you a fast way to send a e-mail to the affected user.<\/p>\n<ol>\n<li>In the SCSM Console, go to Library, check Tasks<\/li>\n<li>In the Tasks pane click Create Task<\/li>\n<li>Input the following settings in the &#8220;Create a task&#8221; wizard<\/li>\n<li>General\n<ul>\n<li>Task name: Contoso &#8211; Send e-mail to affected user<\/li>\n<li>Target class: Incident<\/li>\n<\/ul>\n<\/li>\n<li>Categories: Incident Support Group Folder Tasks<\/li>\n<li>Command Line\n<ul>\n<li>Full path to command: %SystemRoot%\\system32\\WindowsPowerShell\\v1.0\\powershell.exe<\/li>\n<li>Parameters: .\\emailenduser.ps1 Property\/WorkItem\/ID Property\/AffectedUser\/Username Property\/WorkItem\/Title Property\/AffectedUser\/Firstname<\/li>\n<li>Please note that each property is inserted with the &#8220;Insert Property&#8221; button<\/li>\n<li>Check both &#8220;Log in action log when this task is run&#8221; and &#8220;Show output when this task is run&#8221;<\/li>\n<li>Working Directory: C:\\Scripts\\<\/li>\n<\/ul>\n<\/li>\n<li>Save your new task<\/li>\n<\/ol>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail01.png\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-1934\" title=\"AffectEmail01\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail01-300x238.png\" alt=\"\" width=\"300\" height=\"238\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail01-300x238.png 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail01.png 891w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>As you can see in the task we are using a script here, C:\\Scripts\\emailenduser.ps1. It is a powershell script that you can download here, <a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/emailenduser.zip\">emailenduser<\/a>. Please note that you will need to modify the script to work in your environment, there are some notes about that in the script.<\/p>\n<p>Now, if you select a incident in a incident view you will have a new task in the tasks pane, &#8220;Contoso &#8211; Send e-mail to affected user&#8221;. If you click it you can input a text. This text will be in the e-mail. The e-mail will also add a &#8220;Hi affect user name&#8221; and &#8220;thanks, br service desk&#8230;&#8221;. Don&#8217;t forget to modify that part to in the script.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail02.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1937  aligncenter\" title=\"AffectEmail02\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail02-300x101.png\" alt=\"\" width=\"300\" height=\"101\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail02-300x101.png 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail02-1024x346.png 1024w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail02.png 1447w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>The operator will see the e-mail and it will also be inserted into the action log of the incident.<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter\" title=\"AffectEmail03\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail03-300x285.png\" alt=\"\" width=\"300\" height=\"285\" \/><\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail04.png\"><img decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1939  aligncenter\" title=\"AffectEmail04\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail04-300x137.png\" alt=\"\" width=\"300\" height=\"137\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail04-300x137.png 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2010\/11\/AffectEmail04.png 725w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post I will show you how to build a simple task to send a e-mail to the affected user of a incident. The e-mail will be logged in the action log of the incident.Please note that this will not affect how you handle incoming e-mails, it will only give you a fast way &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=1931\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1931"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1931"}],"version-history":[{"count":8,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1931\/revisions"}],"predecessor-version":[{"id":1944,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1931\/revisions\/1944"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1931"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1931"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1931"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}