Our team has a pretty bunch of exps in deploying Microsoft System Center products especially Service Manager. In one project the customer requested an interesting feature that could be valuable for you too. The client wanted to share the information about a voting progress with the Service Request’s initiator. It also wanted to provide the affected user with the voting decision (yes/no and the comment if any) of each voter.
The affected used can see the action log’s comments on the portal so we decided to create an analyst comment for each event of voting. We started with Smlets and Powershell.
Here is the Powershell script that does magic:
Please pay your attention that the script is devoted to use with Service Manager 2012 Authoring Tool. I’ve attached a zip file with Authoring Tool project that included all needed files. Please test the solution in a sandbox before deploying. And if you wanted to make changes in the script please check the following string in XML file:
param ( [guid]$R_GUID )
This string is generated by the Tool automatically and describes the parameter for Powershell script. What we need to control is a type of the parameter in squire brackets. By default, the Tool defines a STRING type but we need a GUID type. If you edit or import the script body the type of the parameter could be changed back to STRING type. So change it manually in Navus.AddCommentAboutReview.xml using any XML editor (i.e. Notepad) then reopen in the Tool, change the solution version then save the solution without further editing.
The requirements are usual for such types of Smlets solution: Powershell execution policy is set to remotedsigned/unrestricted; installed Smlets; AddComment.dll file should be put in Service Manager folder (default path C:\Program Files\Microsoft System Center 2012\Service Manager).
If you don’t see any changes after the solution’s setup check the status of the workflow “Add Comment about decision of the reviewer” in Administration->Workflows->Status. Please note if your Service Manager installation isn’t patched to System Center Service Manager 2012 SP1 Update Rollup 2 you can get the error message with ‘The located assembly's manifest definition does not match the assembly reference’. To fix that try to edit MonitoringHost.exe.config as described here. Or patch your Service Manager.
Add Comment about Review Decision
Hi friends,
Our team has a pretty bunch of exps in deploying Microsoft System Center products especially Service Manager. In one project the customer requested an interesting feature that could be valuable for you too. The client wanted to share the information about a voting progress with the Service Request’s initiator. It also wanted to provide the affected user with the voting decision (yes/no and the comment if any) of each voter.
The affected used can see the action log’s comments on the portal so we decided to create an analyst comment for each event of voting. We started with Smlets and Powershell.
Here is the Powershell script that does magic:
Please pay your attention that the script is devoted to use with Service Manager 2012 Authoring Tool. I’ve attached a zip file with Authoring Tool project that included all needed files. Please test the solution in a sandbox before deploying. And if you wanted to make changes in the script please check the following string in XML file:
param ( [guid]$R_GUID )
This string is generated by the Tool automatically and describes the parameter for Powershell script. What we need to control is a type of the parameter in squire brackets. By default, the Tool defines a STRING type but we need a GUID type. If you edit or import the script body the type of the parameter could be changed back to STRING type. So change it manually in Navus.AddCommentAboutReview.xml using any XML editor (i.e. Notepad) then reopen in the Tool, change the solution version then save the solution without further editing.
The requirements are usual for such types of Smlets solution: Powershell execution policy is set to remotedsigned/unrestricted; installed Smlets; AddComment.dll file should be put in Service Manager folder (default path C:\Program Files\Microsoft System Center 2012\Service Manager).
If you don’t see any changes after the solution’s setup check the status of the workflow “Add Comment about decision of the reviewer” in Administration->Workflows->Status. Please note if your Service Manager installation isn’t patched to System Center Service Manager 2012 SP1 Update Rollup 2 you can get the error message with ‘The located assembly's manifest definition does not match the assembly reference’. To fix that try to edit MonitoringHost.exe.config as described here. Or patch your Service Manager.
AddComment.zip
Categories: System Center 2012 Service Manager