Share via


SharePoint Online with Visio Services

 


Description

Office 365's SharePoint Visio Services offers a fast and simple way to work with Visio diagrams. In this article, we are going to present a diagram that was built on Visio 2013 using Visio Services as a dashboard. To view how the Visio diagram was built you can refer to my 'Build Visio 2013 diagram for SharePoint Online' article

 


Scenario

We want to create a dashboard using Visio Services such that we can view a minute by minute update of the employee onboarding stages and the quantity of the assets. To achieve this we have an O365 SharePoint site with three lists called assets, onboarding tasks and employee-onboarding. A Visio diagram has been built on Visio 2013 Pro with external connections to these three lists. Data graphics connections have also been established on this Visio diagram with the lists. This Visio diagram is now stored on SharePoint online and is now going to make data connections between the diagram and the SharePoint lists.

 


Visio Web part connections

In this article, we are going to look at two connections.

1. Send Shape data to: Changing the list web part's data based on the shape in the Visio diagram

2. Get Shapes to highlight from: Changing/highlighting the shape of a Visio diagram based on list data.

 


Lists

Below are the three lists and their respective columns.

Assets

This list stores the ID, name, current quantity and required a quantity of each asset. Below is a screenshot of the columns and the list items.

https://7imwva.dm2301.livefilestore.com/y2pDk4n_-s-D0VBi3ieXZxl3WPB-ZS-TUXFewxslNCH4cP61k9pUsXxIXpDGfpYTHi6Gvmh4sqOXl11N5PnKner-UauSCMgBfFeLbMYcxjLKZo/Capture1.png?psid=1

https://7imwva.dm2301.livefilestore.com/y2p_myr3fTEsJRSq2iGB0lnKDrMCES_8UW4NyAT6VbE57NypLMriQc8Zvf5ZBNaxVqsjsz1Rvt91ieF0RUARl4T_UHmIr08EGhTbgyBR9QgUQY/Capture2.png?psid=1

Onboarding tasks

This list stores the title, estimated time take and the actual time taken to complete tasks. The time is recorded in hours. Below is a screenshot of the columns and the list items.

https://7imwva.dm2301.livefilestore.com/y2pMiC91i-ZCB7suMLXaT63xp3Yyv2zJeHLfAFWdQOKGbp2V29lrbd42g3aPX7zZ2Ik7fh3FtEPPA5BuyogQgd4jWxTpiVCdEHs0ANCvII-kNo/Capture3.png?psid=1

https://7imwva.dm2301.livefilestore.com/y2pjCj5_gtC5EWQL4-794rYZiXKqkS2XAMJBbqQc-kB-VFTRiIO-iYXnunvlME0Hju94_lq4-1lesYTO5IMp1Y3KV50UqG9pWO0uGy8-UT2YOo/Capture4.png?psid=1

Employee onboarding

This list is to put in a request for new employees. Current onboarding status, employee Id, employee name and employee type are the columns. 

Below is a screenshot of the columns and the list items.

https://7imwva.dm2301.livefilestore.com/y2pbQbvqlxQSBDD50M0jvrS2pDTHcqjkAT-Fgu0z8x8OzHRQ6mOu-ikfod2KmaKYeTbb8s-LRQZL4waO4YD05ldQAz5FiIH8A5WWX0dhc0PnJg/Capture5.png?psid=1

https://7imwva.dm2301.livefilestore.com/y2pX7MgRI0WTAUThDnQxRoPVvHlZlqXzxYhpyaudyVBzMX-w-yTFwTfo-zURYocv7--VRxCQ3jYLUpdaB-XOsaJ2HS-md7vraxACBjWPdJp6Hg/Capture6.png?psid=1

 


Brief description of the Visio diagram

The Visio diagram was built using Visio 2013 Pro. Below is a video of how the Visio diagram was built. You can view 'Build Visio 2013 diagram for SharePoint Online'. The VSDX file is stored in a document library.

View

 


Adding the web parts

Adding the Visio Web Access web part

A new page called Visio has been set up. A Visio Web Access web part has been added as shown below.

https://7imwva.dm2301.livefilestore.com/y2pTD9tWqIuuLnp672Ri4J32OpprQutrVZ-xbqtF3pIRBm87qWfBcgSF-a02Dm-Jl7cCG1pSxLrJtCGubXTFiQIuLNgQh5EN6TxWG4xtOZzg_o/Capture7.png?psid=1

Once the web part is added edit it.

https://7imwva.dm2301.livefilestore.com/y2pDT1o3bB-mB_UOmFMUzYiDe0GMjcvKHN9UU4bKuHLyMqcBFSUu0NJqB00l2_PMLrbm-XBr6_rdJraKIqCv70YIhOoIJOWf_oiv80PiIxSQcA/Capture8.png?psid=1

Add the Web Drawing's URL. This also a good time to change the appearance, in this case, changed the height to 800 Pixels.

https://7imwva.dm2301.livefilestore.com/y2pm5Va64wkInJ3VZFZ72mtc20e8mvPXmVswji7paH6NUZaa4fYAyDwj06w6teaQUCVVTt_DebGz9uiyOAknGHsRNySlO3A0d98mml4fpperWY/Capture9.png?psid=1 https://7imwva.dm2301.livefilestore.com/y2pGG5qNVuF2Ob_wCxGf2mS3R708AjYW-BtJPw1oiJbtgH1bnQdTdKCm-ea-1GIOkTaAMo3APNHZx5I1yHtQJOMFNSQaDK3Lfb4UAcvt_hWj_U/Capture10.png?psid=1

You should now see the Visio diagram on the page.

https://7imwva.dm2301.livefilestore.com/y2pDbhrbhPfaGdAtf5ie7BfnP_BF37W-gzMNhcYLhxw6IllHeDbwAZnEtkFHqG-Pv_NNXE_JzR6pGs1vJsywKdXtXIxYIgHRgSzhegdJOzv4vk/Capture11.png?psid=1

Adding the list web parts

Add the two web parts such that the onboarding tasks are above the Visio diagram and the assets are below.

The location of the web parts is purely for esthetic reason. Below are screenshots of the page layout

https://7imwva.dm2301.livefilestore.com/y2pPXxSJmCt3RY67rQxlA8N9ApJ01F-Sf14P5di0dhk5FSOb5jS2JdoD_LY_SB3GBtqw1LvO73PP5riLkDO4D7cUPUofLlx6pMNmNS-yYR55FE/Capture12.png?psid=1

https://7imwva.dm2301.livefilestore.com/y2pG2cmDTgBZKuZxb2giLgw-QbKTzgYWjYzlJLW7Axw9FwR7RhqKAvmDaei3FbdfjzPTqPbR3KsJWQKxCVciugOlaMmRytKJckcKfp1t3Lmlzs/Capture13.png?psid=1

 


Setup and configure the connection

Send Shape to data

We are going to use the 'Send shape to data' connection such that when a shape is selected on the Visio diagram the relative onboarding task item is provided. 

Edit the page, exit the Visio web part and make the selections as shown below

https://7imwva.dm2301.livefilestore.com/y2p9NPwiR4nJGd1efFIHXcAYmZ335a6Vozcf_x4DEj9Mql1hXSLucji9Qal7JEl-YkjUSyIOCzf7GtHtVAfH7qAs-hy2z0do9MxOQ63wiWvgbQ/Capture14.png?psid=1 https://7imwva.dm2301.livefilestore.com/y2p-oYOdsY9XPecsMlNqyDgY2NERWhBjM4AXOgc0EDTuAIpqk14e1StWT9c7Oc15eqy85SGNLyYw396bMAxqdBjuU6-OVkSWUCW93eiqJ14gH0/Capture15.png?psid=1

You will be presented with the below dialog. The connection type is 'Get Filter Values From'. Logically this option makes sense because we want to get some values from the Shape to filter the list items. Click Configure

https://7imwva.dm2301.livefilestore.com/y2pwDf71xTovGdOh3yTpdv23LL5tUH3eltblEhEB-SzGJ0W71qehS9YkM395L9FQxHVFlaqLnZq-G6_nbCfrUmbRKSTyTo2rm6EmcryT74cmiQ/Capture16.png?psid=1

You will now be presented with the next dialog. This is where things get confusing. By default, the provider field is Shape ID and the consumer field is blank.

The provider is the Visio shape that is providing the information and the consumer field is the list that is consuming the information.

https://7imwva.dm2301.livefilestore.com/y2pncD0f9r9C_UNEITt4YP7bkmWDP16oWyXEMOaFJ0m04qyJbyDm_Z6oNUCf9pGBfw6NpNS_Q5p2N6pJvtKmLVIU1_hh1hk2tTMUixbU5KZS_I/Capture17.png?psid=1

When we look at the Visio web part and the onboarding tasks list we see that the Shape name from the Visio diagram matches the title column from the list hence we make the below choices and click Finish.

https://7imwva.dm2301.livefilestore.com/y2pSfKyBr83rP0QLc9ipnkA-E71IHNEq2U-ejoDk8H1FrhzwNE-MjaZniL2JufmTmSUo2Gh0-AuK8ns0kKf8ndZUt5b4Df36D__F1JA6jQmwwo/Capture18.png?psid=1

Now we see that the Onboarding tasks' items are missing. However, when we click any one of the shapes, the list continues to remain blank. This means that the connection configuration isn't correct.

https://7imwva.dm2301.livefilestore.com/y2pnSzmw9BaTJOat7mHtVE-SPky_vPC4HpPSZIh__goni1SaJQikIWZFfVLC2cDt9k88CjTakPwjX-peOD4Pk7nixB1_RZHcmKy6VreT5uYme0/Capture19.png?psid=1

To resolve this issue we need to open the VSDX back in Visio Pro and look at the shape's data definition.

In Visio Web Access click the 'OPEN IN VISIO' option. You will be presented with the below message. Click Yes

https://7imwva.dm2301.livefilestore.com/y2pCI0gI9p428IjNN8-SfdcbwASazPbHQT2i0Lx0CLj6yix3ElU9bmqNcvASv0kozSlGhBb8rqizn9MZgg-XnmOGtZckmhpSFY7fLiosDmS5mk/Capture20.png?psid=1

We now want to view the data of a shape to find the matching information. You can do that two ways-

1) Click any one of the shapes, then right-click and choose 'Shape Data…' as shown below.

https://7imwva.dm2301.livefilestore.com/y2pR7kKJndwuU8sWibQ6sgzmJ5wFmd6nwFMiUWnrKp6BIwvZ940q_0TY01abW03mX_yMs2bxoXtsRlb7zTnBsPg9cVvaRwA0SAIkI0xaigXpk4/Capture21.png?psid=1

2) Or you can simply click the 'Shape Data Window' option in the Data ribbon.

https://7imwva.dm2301.livefilestore.com/y2pGK1wS4dBlTOHNJwLgrC7wBmySwOKz_9Q9QJdX3Nl0P7ZORNet6eqTLov5ZaQt08vBAYO6zwGM4pCxlrl_yJ552YKPfAWmNt-KEYXad-TsuA/Capture22.png?psid=1

Now we see that the Title of the Shape Data matches the Title of the list column.

https://7imwva.dm2301.livefilestore.com/y2p6LdDCgJpEFLUU8FQaoESdlyeSHmjrPAD3Iknyj3k56nepukULHbHep5xrKS8frqihFclSt6LgkN_T4G51Iac7Kbm6cmfALTx0Bsse9PB-R8/Capture23.png?psid=1

However, if you recall when making the connection on SharePoint, Title was not an option to choose in the Provider Field Name. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2pha-MnSNYN5A0YJkGsoQGT6ccfEp0qebzWUpRUF6V-Lqu2ibpldikPuVnS1u77l43r8DrzTQRssjQvfa-LoQVmYyYh7Z6j2sypBA5CyRbFWw/Capture24.png?psid=1

Hence to add that option we need to go back to SharePoint online, edit the Visio web part and add Title in the 'Expose the following shape data items to the web part connections'

https://7imwva.dm2301.livefilestore.com/y2p9XfBoKh3cIlni0vAHHXtGFTPuulbmiOyHdmmJ8CEiiQCEOejkkQpDcW_Yw0gFpqTHFGUHBRdK2BBp_63TDqQZ56A4iNkghOEGCDIW-PzxNs/Capture25.png?psid=1

Now when you go back to make the connection, you will see Title as an option. Hence make the connection settings as shown below.

https://7imwva.dm2301.livefilestore.com/y2pntBxDDfET9IGshm-mA1duAei2g27Y-a54EOIcuAuGOaeknPTqNXTByf2kUzgcwBrlzl2Fg5B4O0dnlClQlnTOo7Q3N1ZzsN5e-s8w-Qhnbg/Capture26.png?psid=1

https://7imwva.dm2301.livefilestore.com/y2pL7erVop2Vm3CRJruwtfR9KqPiZ5iN18ebavfr9qHygxZml8Gj4GBgQQwLeTp9jTsjmmq_iFbHLRxGrij6HEooA2kB_oqDnDMtQ9VulUAQHA/Capture27.png?psid=1

 By default, the onboarding tasks list will be empty, but now when you click on any one of the shapes, the related onboarding list will appear.

For example, we clicked the creating accounts shape after which the related item appears.

Before

https://7imwva.dm2301.livefilestore.com/y2pwZ7f9cVbai-zfEsGL0l8qlEpY_bVbyn1IMepZC8VQxgpfOTsEzS9u6kJKsx3tcihAujaiO36L1ERRpgl5MKvfGil3QZ47ILUhXCZSPsRvdA/Capture28.png?psid=1

After

https://7imwva.dm2301.livefilestore.com/y2pJw10Uomk6bH2jUtU-UikiAfKosqjkNo8GBOGKQ2jAu3TJvcB7IntdZCieVMDT_osE1YVX3o70oY5cuKr3KAt7T4uE9fPygMkjXYmsjZlVQc/Capture29.png?psid=1

Get Shapes to Highlight From

We are going to use the 'Get Shapes to Highly From' connection such that when a list item is selected the respective assets Visio shape will be highlighted. 

Before you continue to select the Asset page in the Visio web access web part and then edit the page. Make the selections as shown below

https://7imwva.dm2301.livefilestore.com/y2pek--WlpKrfnQYlC7peQNtLr9JAcMEw13wEVtEpk0L5553m5UC7Ofjk7qnIT8sJkQ5ezpjhKnosYzRhdR1AeRiV9rWAIK1ByBno571VWR64Q/Capture30.png?psid=1

You will now see the below dialog window.

https://7imwva.dm2301.livefilestore.com/y2pbcjl0_R9B4WRb5g0AkkCDr3Ci6pbaeQlVPNO6sS2BDwXOl3MNfaVY-iPECqIS-3Sk__orNjVVXIWSCmeqioZfj7ukUkLGBYaPDAFZ_PHVvE/Capture31.png?psid=1

We want to setup the connection such that when the Asset Name item is selected on the list, the matching Visio shape in the diagram will highlight. Hence below is the connection setting

https://7imwva.dm2301.livefilestore.com/y2ptIovgV-lAXMDt2zmWbRQnUcsQzN_sn_5Gyqvr-UfL5lcYxkXvqlAepicSWae6KTrBklPRduR02xM0eutymZ1MbjHX1PoYA9CMEpyjcFOCeQ/Capture32.png?psid=1

You will immediately notice the relationship icon has appeared for each item in the Assets list. Depending on which item you select the respective shape will be selected. For example, we selected the Tower PC item and now the tower pc shape has been highlighted. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2pP3ztmWNlM9p7o4AmQH_0DDXMSBNGyqPr0KSXgr2OHH-YdMGTM8S2N2ph-_kGFTluKwQ6NHDLlF_Frqrc8knxHOMpz3yFSTUyCRkVvJkMLbo/Capture33.png?psid=1

Next Level

Now the two lists and their relationships to the Visio services works like a champ, but lets' take it to the next level.

Right below the Onboarding tasks add the employee onboarding list as well. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2pnDdu9FurwDVQyqHdqpWmnawZV9GLLtszQzAfor2l-y6c7mYnPq64kF3ynlvPFO94EX9P7YslNn7DPxgXS1uVZ5rN8ekoYmEzB84lj_U7P70/Capture34.png?psid=1

Edit the employee onboarding list and make the 'Get Filter Values From' connection as shown below.

https://7imwva.dm2301.livefilestore.com/y2pa_IHFE3HkMStygTl4UiOfHBJ-MHAcqeDhsVG1svKg_dFy-CVBqaMRD8J-HxkV1PVTWjEwdgx49-MzDZlp774jw0sqAeQmcotFIvWmfeoaDo/Capture35.png?psid=1

Below is the connection settings. Click Finish.

https://7imwva.dm2301.livefilestore.com/y2pqaSj_ZZsw7RsW-RXJSO7eOo0d_rnPDLqLKXKa_O1ETiXRwChFRddZ9_60QQSjegByAX4bRzyTvqlTRljypfsOuQG8WXDfBrKfu7XNqcBE0I/Capture36.png?psid=1

As you can see the employee onboarding list is filtered as well

https://7imwva.dm2301.livefilestore.com/y2plSzKbpmyrMsSUAZw4nXGSB2Y1fqk9KmvOBSpeLUEMC5ZGzBSKhVd45f_Pqe0HhqISVkjQiIGjJKLKSmnDogD9zINx-iNgbM0G7tewVF73Gc/Capture37.png?psid=1

Now when you select a shape, say background check, the respective onboarding task item and the employee onboarding item is presented. It is important to under the relationship here. The onboarding task list makes its decision based on what shape is selected. The employee onboarding list makes its decision based on what onboarding tasks item is present. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2pOTUEI4nIL6bOcHVitxzmC1sesPwxBm5a6oqccS6lULRvQrQJ546JKpIkI0k6-HRq_tDVENPd7261alo6OStB-jd0Bty3t0jOjXWV_SR1Cjk/Capture38.png?psid=1

 


Testing the automatic refresh interval

When you edit the Visio Web Access web part, you will see an option called 'Automatic Refresh Interval (in minutes)'. This setting sets the time for the Visio diagram to refresh the data from the lists. As an example, we have set up the refresh interval for 1 minute. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2pVHnAbGkKOFyhvv2m4V-6YoUp18a7eP87QK5o5jizJ2WTJttgBomesnT_LJh2BYXP8_htdaOb5Jie2rwGhKmAz1Zoj3u5DTQCTvfPOKnN9Ak/Capture39.png?psid=1

As a test lets' make changes to the Background check to test the refresh. Currently, the background check has a red arrow pointing downwards because the actual time taken to perform this task is more than the estimated time taken. Below is a screenshot of the visual display of this status. As you can see the actual time taken is three days while the estimated time taken is considered as two days. Hence the red arrow points downwards.

https://7imwva.dm2301.livefilestore.com/y2p__vxr8HvUdgJt4-zT9IAeUylmmlrl6myS2X-QE8Tp9cwszZcC6FYouFqFD85bmDpHsg65BFS4qMlPl33QKDz8EsTmx5QBg45bOe3FsgshSM/Capture40.png?psid=1

We are now going to change the actual time taken to two days. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2pPHasXiioj1ZU_MfpdZ_pcixZQvowQaL9yh-ESPMKuoWg8k3fdOinZ4YHEfJcahDUjGHGYnGpkPokcjdbZEs5zOGr_bz7exn68UeUqslhK2w/Capture41.png?psid=1

After the next refresh interval has gone through you will notice the background check shape's status has changed. You will now see a green arrow point upwards. Below is a screenshot

https://7imwva.dm2301.livefilestore.com/y2ps9Sbph6cXt5eJ2rUR8Jr0TBXOBbGyszDqs9382UC_SipGUKGQdX1jOCNYar4KMcjxJEc--OrqkrJy8XTLUAMIrGpcICOEz_56pOtnX1UPBo/Capture42.png?psid=1

 


Video

We have built a video to walk through the process of adding the list and the Visio web parts and adding the relationships. 

View

(Click Here for high-resolution video)

 


Conclusion

Besides the modern look of the app, the new Visio offers several new capabilities. As Microsoft has rightly stated, " Visio Services is a part of Microsoft SharePoint and O365 that offers a fast and simple way to consume Visio diagrams". To read more about Visio Services full fidelity viewing capabilities Click Here