> For the complete documentation index, see [llms.txt](https://docs.simutek.se/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.simutek.se/ekonomi/integrationer/microsoft-dynamics-365-business-central.md).

# Microsoft Dynamics 365 Business Central

{% embed url="<https://dynamics.microsoft.com/sv-se/business-central/overview/>" %}
Läs mer om Microsoft Dynamics 365 Business Central
{% endembed %}

### Microsoft Dynamics 365 Business Central

#### Aktivera app i Azure och Business Central

1. Logga in på ditt konto i [Azure Portal](https://portal.azure.com/).
2. Gå till *Azure Active Directory*.
3. Gå till *App registrations > New registration*.
   * Name: `GKS`
   * Account types: `Accounts in this organizational directory only (Contoso only - Single tenant)`
   * Klicka *Register*.
   * Anteckna: ***Application (client) ID*** samt ***Directory (tenant) ID***.
4. Gå till *Certificates & secrets > New client secret*.
   * Description: `GKS`
   * Expires: `24 months`
   * Klicka *Add*.
   * Anteckna värdet för **Secret&#x20;*****Value***.
5. Gå till *API permissions > Add a permission > Microsoft APIs > Dynamics 365 Business Central > Application permissions*.
   * Kryssa i: `API.ReadWrite.All`
   * Klicka *Add Permissions.*
   * Klicka på knappen *Grand admin consent for (your org).*
6. Logga in på ditt konto i [Business Central](https://businesscentral.dynamics.com/).
7. Klicka på sökikon och skriv: `Azure Active Directory Applications`. Klicka på länken.
8. Klicka *New*.
   * Client ID: `(antecknat tidigare)`
   * Description: `GKS`
   * User Groups: `D365 FULL ACCESS` (eller annan lämplig för ändamålet)
9. Gå till *Settings (kugghjulet) > Admin Center*.
10. Kontrollera att er miljö:
    * Har namn: `Production`
    * Har version: `18.3` (eller senare)

{% hint style="info" %}
Se [Using Service-to-Service (S2S) Authentication](https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication) för fullständig dokumentation och steg gällande aktiveringen.
{% 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.simutek.se/ekonomi/integrationer/microsoft-dynamics-365-business-central.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.
