Skip to main content

Synchronize your Comeen Workplace presences in a Google Sheet

Updated yesterday

1- Synchronize presences in a Google Sheet

2- Use data in a DataStudio.

Synchronize presences in a Google Sheet

To start, create a dedicated Google Sheet.

Set up the script

Click on Make a copy:

mceclip1.png

Copy the url of the AppScript and send it to your referent at Comeen:

mceclip9.png

We will then send you yourClientID and ClientSecret.
You will have to paste them here:

mceclip10.png

Get the url of your GSheets:

mceclip2.png

then paste it in between the "" of the GOOGLE_SHEET_URL attribute:

mceclip3.png

Choose the range of data synchronization:

mceclip11.png

You can also use startOfMonth(); and endOfMonth(); to have the script automatically take the current month:

mceclip12.png

Or startOfYear(); and endOfYear(); to have the script automatically take the current year:

mceclip13.png

The larger the range, the longer the script will run.

Add librairies

Click on Librairies:

mceclip0.png

Add ID 1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF and click on Look up:

mceclip1.png

Choose the latest version and click on Add:

mceclip2.png

Generate the authetification url

Run the Script:

mceclip8.png

Click on Review permissions:

mceclip4.png

Select your account:

mceclip5.png

Click on Allow:

mceclip6.png

Once the script is finished, get the URL in the logs:

mceclip5.png

Connect your Comeen Workplace account

Open it in a browser and connect your Comeen Workplace account (The account must be Space Administrator):

mceclip3.png

Click on Allow:

mceclip4.png

Run the script

Once connected, go back to the script and run:

mceclip7.png

You will now see the presence on your GSheets:

mceclip6.png

Add an automatic update

Go to Triggers:

mceclip21.png

Add Trigger:

mceclip22.png

Select the refresh time of the GSheets and click on Save:

mceclip23.png

You can now use this data in a DataStudio.

Use data in a DataStudio.

Create a DataStudio and select Google Sheets:

mceclip15.png

Select your GSheets and click on Add:

mceclip16.png

Click on Add to report:

mceclip18.png

You can now design your DataStudio:

mceclip19.png
Did this answer your question?