> For the complete documentation index, see [llms.txt](https://docs.totallink.nl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.totallink.nl/functioneel-beheer/how-to../module-specifieke-configuratie/datalink-instellen/datalink-excel.md).

# Datalink Excel

Haal data rechtstreeks uit TotalLink op in Excel via DataLink. Je hebt hiervoor een URL en een API-key nodig — die ontvang je van de functioneel beheerder.

{% hint style="info" %}
Heb je nog geen URL of API-key? Vraag deze op bij de functioneel beheerder van jullie TotalLink-omgeving.
{% endhint %}

## Hoe verbind ik Excel met DataLink?

{% stepper %}
{% step %}

### Open Excel en kies **From Web**

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAfKgOhbkXpyECHKNoZg2%2Fuploads%2FOA1ewSRryOvErqGszrHJ%2FRecording%202026-09-15%20104624.mp4?alt=media&token=407181c1-a62e-4f1f-8621-fdfe688b4e48>" %}

1. Open Excel en ga naar het tabblad **Data**. Zorg dat je via de excel desktop versie van de werkomgeving doet om te zorgen dat je via de&#x20;
2. Klik op **From Web** → kies **Advanced**.
   {% endstep %}

{% step %}

### Vul de URL en header in

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAfKgOhbkXpyECHKNoZg2%2Fuploads%2F21grBvAivUTLjS309wVb%2FRecording%202026-09-15%20102819.mp4?alt=media&token=a0eb79ed-671e-4860-b625-905c65f03b78>" %}

1. Vul in:
   * **URL:** `https://[organisatienaam].datalink.totallink.nl/api/views/[databron-id]`

     * Deze url kun je vinden in het onderwerp van de tegel die je aangemaakt hebt.&#x20;

     <figure><img src="broken://files/BiY2d2ru2IHiulwfnepO" alt=""><figcaption></figcaption></figure>
   * Voeg een **Header** toe:
     * Naam: `x-api-key`
     * Waarde: jouw API-sleutel
       {% endstep %}

{% step %}

### Klik op **OK**

Klik op **OK**. Excel haalt nu de data op.
{% endstep %}
{% endstepper %}

## De data omzetten naar een tabel

De data komt binnen als een lijst. Zo zet je hem om naar een bruikbare tabel:

{% stepper %}
{% step %}

### Zet de lijst om naar een tabel

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAfKgOhbkXpyECHKNoZg2%2Fuploads%2FKO3gZyQpFexIarAlEid3%2FRecording%202026-09-15%20110223.mp4?alt=media&token=31b959e2-ebc7-40e7-8444-cdd2a30443af>" %}

In **Power Query**: klik met de rechtermuisknop op de kolom → kies **List** → **To Table** → klik **OK**.
{% endstep %}

{% step %}

### Spreid de velden uit

Klik op het **uitklap-icoon** (twee pijltjes) bovenaan de kolom om de velden uit te spreiden.
{% endstep %}
{% endstepper %}

{% hint style="warning" %}
Als je je volgende onderwerp gaat toevoegen, let dan op:

1. Dat het onderwep in output DataLink toegevoegd is en het schuifje databron ontsluiten aan staat
2. Het zojuist toegevoegde onderwerp ook toegevoegd is aan de API-Key die actief is en gebruikt wordt. Anders ontstaat een foutmelding bij het opvragen van de data.
   {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.totallink.nl/functioneel-beheer/how-to../module-specifieke-configuratie/datalink-instellen/datalink-excel.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
