Table Filter macro and excel Share point Intergration
Asked by Richard Moore:

Is there any way to sensiably add a live Excel document that is on Share point shared with a large group of people into a Confluence Table Filter Macro?   

we have multiple ad-hoc resources that refer to multiple events. on an excel workbook in sharepoint   

Aim: is to pull the Excel sheet into a Table Excerpt, push that table excerpt into a confluence Table Filter which then displays the relivent infomation per event on each page.   

so far I have found that Excel share point URL's cannot be embeded into an Table excerpt then seen by the Table Filter.   

the next step i tried was to make an excel page that pulls a copy of the original Excel sheet, then exports it as a CSV file:   
so far i have uploaded a CSV Excel file onto a page, pulled it into table excerpt via a Table From CSV Macro then loaded it into the Table filter, how ever this does not work,   

the Table filter will see the Table from CSV when added on its own but the Table Excerpt will not carry a Table from CSV MACRO.   

I am also debating doing the same but with an Import Table from JSON MACRO.   

I understand i am probably doing something unorthadox to the norm.   

is there any suggestions to get this or are there any Add ons to achive this?


Answers:
author: Stiltsoft support
body: Hi [@Richard Moore](/t5/user/viewprofilepage/user-id/4545391) ,

Our app can't work with the data coming from the Sharepoint directly due to its security: you won't be able to insert a link to your Sharepoint sheet via the Table from CSV macro and recreate a live table in Confluence. With Google Spreadsheets it is possible though.

What concerns your second option, then it should work unless I misunderstood you. If you have a .csv file attached to your page, then you can recreate it as a table via the Table from CSV macro.

This Table from CSV macro may be wrapped in the Table Excerpt macro and reused via the Table Excerpt Include macro several times. These Table Excerpt Include macros can be then wrapped in the Table Filter macros for independent filtration across your pages.

comments: author: Richard Moore
body: "This Table from CSV macro may be wrapped in the Table Excerpt macro and reused via the Table Excerpt Include macro several times. These Table Excerpt Include macros can be then wrapped in the Table Filter macros for independent filtration across your pages."  

This is what I have been trying to do:  
Current test setup is:   
Excel.csv file attached to page, \> Wrapped in a CSV to table Marcro\> Warpped Table excerpt Macro/ Table excerpt include macro\> Wrapped in a Table Filter Macro   

though i have found that at the "Warpped Table excerpt Macro/ Table excerpt include macro" stage i get the output error  

"No Table Excerpt macro with name **CSV-Test** found. Did you publish the page with the Table Excerpt macro?"  

i guess this has something to do with it being saved in a One Drive?


author: Stiltsoft support
body: So, you have your .csv file attached to the page and the page is published.

The next step is to recreate your table via the Table from CSV macro: find this attach by its name and see your table in the macro preview.

Then you wrap this Table from CSV macro in the Table Excerpt macro with the **CSV-Test**name.

Then you again ***publish the page***.

After that you insert the Table Excerpt Include macro (on the same page or any other pages) and try to find your **CSV-Test**excerpt.

If the page with the Table Excerpt is not published, the Table Excerpt Include doesn't know that a new excerpt is in the system.

That's why you have this error that prompts you to publish the page with your excerpt.

If the page was published but you have the same error, it means that the names inside your Excerpt and Include are not alike. For example, your Excerpt may be called **CSV_Test** but your Include searches for **CSV-Test**.


author: Richard Moore
body: ok thank for that done some poking around: and the Table Excerpt include working again.   

I guess the next question is can Table from CSV pull from a One drive URL?


author: Stiltsoft support
body: It can pull data from [Google Sheets/Google Drive](https://docs.stiltsoft.com/tfac/cloud/outputting-tables-from-google-sheets-and-google-drive-in-confluence-58426130.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) and custom urls that may be public sites and your corporate storages where your Confluence instance is whitelisted.

Not sure that OneDrive url will work here.


author: Stiltsoft support
body: An update from our side regarding the OneDrive files and the Table from CSV macro: there is a [hack](https://paperform.co/blog/onedrive-direct-download-link/) how to get a direct download link to your OneDrive file.

So, we've checked it and you may try the following:

* Save your .csv file as .txt on your OneDrive
* Share this file as "anybody with the link can edit"
* Follow the steps of the mentioned hack (get the embed link and change it as it's shown in the post)
* Paste the newly created link in the Table from CSV macro as an url

For us the file is recognized by the macro and its contents is displayed in a proper tabular way.


author: Richard Moore
body: Hey just to update

Unfortuently this wont work our share point system has removed the "anyone with link" Can edit. this was done due to security issues..

Thank you however for your insight.   
Regards

Richard


Tags: cloud

csv

filter

json

macro

ms-excel

questions-for-confluence

table