<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx</link><description>This is a guest blog post by Mark Newton, one of our community contributors.&amp;#160; Thanks for sharing Mark! ======================================== I have set up a number of ‘Service Requests’ in SCSM 2012 which are all working great. However what we</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx#3531547</link><pubDate>Fri, 09 Nov 2012 12:51:02 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3531547</guid><dc:creator>shumail</dc:creator><description>&lt;p&gt;i want to create a custom workflow which will change service request status to IN PROGRESS when assign to someone.&lt;/p&gt;
&lt;p&gt;if any one share powershell script&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3531547" width="1" height="1"&gt;</description></item><item><title>re: Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx#3514562</link><pubDate>Wed, 15 Aug 2012 19:39:12 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3514562</guid><dc:creator>Andy.Scott</dc:creator><description>&lt;p&gt;I&amp;#39;ve got the same issue as Saniya - Get Object is returning a null/empty value.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3514562" width="1" height="1"&gt;</description></item><item><title>re: Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx#3514463</link><pubDate>Wed, 15 Aug 2012 09:22:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3514463</guid><dc:creator>Andy Scott</dc:creator><description>&lt;p&gt;@Greg - Refer to this post &lt;a rel="nofollow" target="_new" href="http://dynamicdatacenter.wordpress.com/2012/05/31/auto-close-resolved-incidents/"&gt;dynamicdatacenter.wordpress.com/.../auto-close-resolved-incidents&lt;/a&gt; for an alternative method in the Authoring Tool.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3514463" width="1" height="1"&gt;</description></item><item><title>re: Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx#3507539</link><pubDate>Thu, 05 Jul 2012 12:39:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3507539</guid><dc:creator>Saniya Shah</dc:creator><description>&lt;p&gt;m getting an error SC Object GUID null or empty. when i run my runbook i’m asked to give the Acticity ID. I am giving the ID which i have at my runbook in console i.e. 81fba1eeee054d89bf5c78aec05e0de4&lt;/p&gt;
&lt;p&gt;Till second steps it works then at get relationship it give the error&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3507539" width="1" height="1"&gt;</description></item><item><title>re: Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx#3504044</link><pubDate>Fri, 15 Jun 2012 05:15:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3504044</guid><dc:creator>Marat Kuanyshev</dc:creator><description>&lt;p&gt;Thanks Travis and Mark! Let me share a solution for Greg and the community. Below a script in powershell. It uses native Service Manager commandlets so it&amp;#39;s easy to add in Authoring Tool. Here you are:&lt;/p&gt;
&lt;p&gt;CD &amp;#39;C:\Program Files\Microsoft System Center 2012\Service Manager\Powershell&amp;#39;&lt;/p&gt;
&lt;p&gt;Import-Module .\System.Center.Service.Manager.psd1&lt;/p&gt;
&lt;p&gt;$SomeDaysOld = (get-date).adddays(-7)&lt;/p&gt;
&lt;p&gt;$UNC_Now = (get-date).ToUniversalTime()&lt;/p&gt;
&lt;p&gt;$IncidentClass = Get-SCClass -Name System.workitem.incident&lt;/p&gt;
&lt;p&gt;$Inc_resolved = Get-SCClassInstance -Class $IncidentClass -Filter &amp;quot;Status -eq IncidentStatusEnum.Resolved&amp;quot; | ?{$_.ResolvedDate -lt $SomeDaysOld}&lt;/p&gt;
&lt;p&gt;If ($Inc_resolved -ne $null) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach ($Inc in $Inc_resolved)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$Inc.Status = &amp;quot;bd0ae7c4-3315-2eb3-7933-82dfc482dbaf&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$Inc.ClosedDate = $UNC_Now&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Update-SCClassInstance -Instance $Inc&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;$SRclass = Get-SCClass -Name System.WorkItem.ServiceRequest&lt;/p&gt;
&lt;p&gt;$SR_completed = Get-SCClassInstance -Class $SRclass -Filter &amp;quot;Status -eq ServiceRequestStatusEnum.Completed&amp;quot; | ?{$_.CompletedDate -lt $SomeDaysOld}&lt;/p&gt;
&lt;p&gt;$SR_failed = Get-SCClassInstance -Class $SRclass -Filter &amp;quot;Status -eq ServiceRequestStatusEnum.Failed&amp;quot; | ?{$_.CompletedDate -lt $SomeDaysOld}&lt;/p&gt;
&lt;p&gt;$SR_cancelled = Get-SCClassInstance -Class $SRclass -Filter &amp;quot;Status -eq ServiceRequestStatusEnum.Canceled&amp;quot; | ?{$_.CompletedDate -lt $SomeDaysOld}&lt;/p&gt;
&lt;p&gt;If ($SR_completed -ne $null) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach ($SR in $SR_completed)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$SR.Status = &amp;quot;c7b65747-f99e-c108-1e17-3c1062138fc4&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$SR.ClosedDate = $UNC_Now&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Update-SCClassInstance -Instance $SR&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;If ($SR_failed -ne $null) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach ($SR in $SR_failed)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$SR.Status = &amp;quot;c7b65747-f99e-c108-1e17-3c1062138fc4&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$SR.ClosedDate = $UNC_Now&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Update-SCClassInstance -Instance $SR&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;If ($SR_cancelled -ne $null) &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;foreach ($SR in $SR_cancelled)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$SR.Status = &amp;quot;c7b65747-f99e-c108-1e17-3c1062138fc4&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$SR.ClosedDate = $UNC_Now&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Update-SCClassInstance -Instance $SR&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;Remove-Module System.Center.Service.Manager&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3504044" width="1" height="1"&gt;</description></item><item><title>re: Automatically Closing Completed SCSM Service Requests with Orchestrator</title><link>http://blogs.technet.com/b/servicemanager/archive/2012/05/22/automatically-closing-completed-scsm-service-requests-with-orchestrator.aspx#3499896</link><pubDate>Thu, 24 May 2012 16:31:10 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3499896</guid><dc:creator>Greg Wojtkun</dc:creator><description>&lt;p&gt;Travis: Cool! Hey is this doable in the Authoring tool workflow generator?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3499896" width="1" height="1"&gt;</description></item></channel></rss>