Get-csRgsWorkflowDiagram uses Powershell to output your Response Group(s) to a txt file that can be imported into Visio to display in a visual format that is much easier to follow. Below is an example:
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_Pl6UjYiCap7bvIdtzqwTSfRtHlWI0D6hAsCRJbJrBpLCiLlYhOl-z-yDf9Mnif4K5siHNJ4GRTHB2UG-HgrFa9V3M0JactVxz9x8hKESTcm44hTUyDbLu75-TjRHP8eQIhOKeC-JsOBL/?imgmax=800)
You can run Get-csRgsWorkflowDiagram without command line input and it will prompt you csv output path and filename and response group name.
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigs38Pws1d9CaRZUJ3MRrWZGzAMKaxr0Vco97DHbk69bDsb-DLkZeP7-NklXk3lHQSMNofVH-mpaOLD5qJxOjM2G9xqelB0UpELP5m_2dqPWFG2SABZYJE290ZqaT2Cj2dksMScGw3Mo3J/?imgmax=800)
Or you can input parameters from command line: (the below will output all response groups to n:\temp\r55.csv)
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmrdEkcTsUE4AjQ7-ZAxQk1WMkSOndnekG5IdATT2HN4GM4ZoBEiYN2O5MB83JT8b2wwdLVomYMV5ssHzDxxaCU_I4QbZwldpx15u2VFc4TRKXrfLiBLD7nUPZ0Jey0yxYrDqbwh73m4_6/?imgmax=800)
The below example will output a specific response group named “_Int Service Group” and will open Vision and the Org Chart Wizard after its done.
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi764Wfs0r4PjtWcMFIgJ1DiDiC8rMqFZWmnYm6Hb1a09Bo7KEXo01CE6N2YLUqohvM-kEYSxblKFwaPefP_dJck60w_FS7xQgiL1qJEYj0UCC0aEDEHe03GVt8oR0BMwi32aj8XDqKYw6I/?imgmax=800)
NOTE: Passing –ResponseGroupName value of “*All” will add ALL response groups to the file. Visio will chart one RGS per Visio page.
Import the CSV File Into Visio
This can be done using command line: (where ‘N:\temp\r55.csv’ is visio csv file)
OrgWiz.exe /FILENAME=N:\temp\r55.csv /NAME-FIELD=Name /MANAGER-FIELD=ReportsTo /DISPLAY-FIELDS=Name,Title,More
NOTE: OrgWiz.exe is located in the Office folder (something like C:\Program Files (x86)\Microsoft Office\Office15)
…or using the Org Chart Wizard:
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhR2p7GLBywcA7BvOdEU3GXKKr26FKyjrFuczeH8D5Sx4_vT5FGyms1DWqbNFJZeVGhyphenhyphenlrvIkwD6FRzscjUDMUf0J7JHfK35XxG_8qQReZv6U0BKN2R_X6JQBpm5TJj7a2CbVa8fqd7Knav/?imgmax=800)
We will be creating this “Org chart” from “Information that’s already stored in a file or database” and Next
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjynvOc-ns8Gvtbl2PB6sWW_TZhVAJ0Tjf9HeW3ot3V4FTflXa9aoUKaGjQm0of6suZcqWDl6xYPysXCEO59e_RRXIWsXvd99BzTPzftrPCY3ualK6OjVRU1rdZrB99fJpLwe397ERlMiSU/?imgmax=800)
Our script output the file to .csv so we will select “Text or Excel file” and click Next
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkHf_QEsHmF5TF4NPpgIp9HdO9I2W8AdR0P1lgqCD7XFGwrd4CfXSEelcvC3MWkVwcIMlOlkJTtHki-OhmCPjG_vo6SPKMFUDaVB-lWjqWYb1mx-7iRUcMeUSN-Js_y0iB1H4PmL2ZVNdq/?imgmax=800)
Enter the path and filename and click Next
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGYOK_FCmHMgzQt4bDMApSD_YCIxAZcD-OCCd2aWyw-ziNv0zsWGcCIKQcWbhtDC1cSVygnP2cueSnwYjPASFHmetShr7PzDJIxvj1ZNyhFyMK1S9xGi-VnLH-T6IeclgNZeZmh0ahg8Ms/?imgmax=800)
Define the org chart by select Name:=Name; Reports to:=ReportsTo
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4e7tuLQDfAMaNrSb5mhjecD8AX9Cz8iCW-wVhIsfm9UpLhyphenhyphenrYy3uVeV9-TW_j-zlxdtbzEBdyIH9erO6Edzzu_CvI3MgA1BKKJ3DdV8wyevqFk8jatGxYkmXqwP80nGYzoZqfwEnMUO3_/?imgmax=800)
Now select what fields you want displayed on each object in the chart. (your discretion)
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitcUs4_Ak9TBfnflx-FrY84aU_Vnps-fV3pzKbRMFW-M1RQtsd-Va1S4tEjOVpuhAEjctuG6wzcIdyuBJY-BLukDRoFVscc29oLKgrGBcjuRSyyz1TOt8dtVcKevlFnx8D9Kd6FG_zqqB_/?imgmax=800)
We are currently not populating a “Shape Data Field” so you can let this empty/as it.
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb1CRk9mEoYZnpNRtp7hroDGpsv8O7EX3D7-UiaP2h3p7h-Q7NF-6vev6XstJDHJ-XcNPiAO2uvXA9gWlcxJfHLPpkAlsaCQXLmoUX5q0rTlPwko_rlyMpMzuqstqinlE1EoBY1sEeTDcE/?imgmax=800)
How Org Chart” is designed: just let defaults
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDDemID8ccgMnoOb3_6fPjRwUyfxw-JGgLQtNOU2_pbub1xDAvNs_Kx0agCaBbDop_cWKSa5DVf6oCJXOJ-MtNGur1nJBBl5kX7R_c3BvK1TnOonanxpQUcRi_g48ywZ5XREbXbjRwChpT/?imgmax=800)
The Visio Org Chart Wizard has a bug in that it does render Org Charts in sorted order so you might want to go to Design | Re-Layout Page to sort objects by ID.
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD0StPZ_HQeazScExNFglGX1GL6zGuOqV5RxQ53pRPMfIdCQYl2Myk5LaUwgTy1SFOH2qGDMgCXbOFVHfomTXBiw_n6U1x6i_RT3G2BqiQUtBFriWx5tiBL944HiYhWOpC8oRcComDgc7O/?imgmax=800)
You could also select all object and change color/shapes.
Voila-Visio Diagram (Hung Group example)
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwHop-MSfpCHTmANTdqc0bVJML-n_7kcccMfyXajwaGFPhEYxfn79B_UGVCu_k-4ufSwbz9ghknbgPhVNbZlT96DAhjp4I-cqr1TAL83SXGp7yhTyPowK4uuwrgtxvr_kTdgWB9MTn1jnp/?imgmax=800)
Example of a Interactive Response Group:
![image image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW7M1YCb2VxCzOUKP-KR2S-6ZF7s8QGU7ALoiBsukIDFEBVcmNekRELtjSiyrbzifA72Ob4vj0nJfLRdRXxpYqX_q1kOb-YV-e-86FdkNdLVSy2THMxYWtp4EDQzABwNmzquLFxVN1KEU6/?imgmax=800)
Current limitations:
- Currently this tool is BETA
Get-csRgsWorkflowDiagram only follows “DefaultAction” branch of RGS Workflow (to be extended in subsequent versions) Now included in script 1 RGS Workflow at a time. (in future can generate all or a group of RGS at one time) Now included in script. Does not support Interactive Response Group at this time. (working on it) - IRG are now supported but Queue details are not charted (under a question) at this time
- There is a command line switch (-OpenVisio) that will open Visio and the Org Chart Wizard, but at the moment it does not automate the Visio Org Chart Wizard.
- The script is not signed, so you may need to copy past to run at this time.
Download Here:
http://gallery.technet.microsoft.com/office/Get-csRgsWorkflowDiagram-b4465297
Update History:
- 1.00 – Does Queue based RGS diagrams
- 1.01 – Added IRG based RGS
- 1.01 – Ability to diagram all RGS Workflows at one time using –ResponseGroupName *All
- 1 RGS Workflow per Visio page
- 1.01 – many fixes
- 2.00 – coming
I plan to add Visio Org Chart Import Wizard into PowerShell when I get a moment. If you have any suggestions for improvement, please comment or contact me.
Download Here: http://gallery.technet.microsoft.com/Get-csRgsWorkflowDiagram-b4465297
Wish you could diagram Exchange UM Auto Attendants using Visio too? You can!
http://windowspbx.blogspot.com/2014/01/get-umautoattendantdiagram-auto-diagram.html
Other:
http://visioautomation.codeplex.com/documentation
How to Automate Visio Org Chart Wizard via @visprocess: Click Here