# Business Central

#### Mer om Business Central:

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

#### 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: 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:

```
GET https://docs4.simutek.se/integrationer/business-central.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
