# Moment

## Activate Business Central integration

Navigate to the the integrations page under Setup > Settings. \
At the top right of the , click on +New integration button. A dialog will be appearing, in the selection box search for "Business Central". Select this from the list

<figure><img src="/files/EEe9Nv5gyKaqfBHlxjkt" alt=""><figcaption></figcaption></figure>

The configuration dialog expands to show the options to be configured.

### Credentials

<figure><img src="/files/hB7PuzJ9UcsRnxNiEIyL" alt=""><figcaption></figcaption></figure>

The first four fields are required and are used to connect to Business Central.

* Tenant ID: This is the ID for the company, this can be found in the URL when logged in Business Central
* Client Secret: This is the password used to connect, contact [support](mailto:support@moment.team) or [integrations-dev](mailto:integrations-dev@moment.team) to get this generated.
* Environment: Business Central has two environment, Production and Sandbox, write the name of the environment to connect to. This too can be
* Company name: Name of the company within the environment, write the name as it is shown in Business Central.<br>

  <figure><img src="/files/kwE55VeYwWjhnEH6uy0a" alt=""><figcaption><p>In this example:<br>Tenant ID is: b615a443-be0f-4cce-94ce-e54efef50622<br>Environment: Production<br>Company name: CRONUS NO<br></p></figcaption></figure>
* Note! The company name can sometimes contain URL encoded characters. E.g. %20, this is the same as a blank space ( ). %2F is the same as slash (/). More information on what the various characters look like when URL encoded can be read [here](https://www.w3schools.com/tags/ref_urlencode.ASP).

### Data objects

Having configured the credentials, the next part would be to activate what parts of the integration to use.&#x20;

* Export customers\
  To transfer customers that are created in Moment to Business Central, select this checkbox.
* Export projects\
  To transfer projects that are created in Moment to Business Central, select this checkbox.
* Export invoices\
  To transfer invoices that are created in Moment to Business Central, select this checkbox.
* Import expenses\
  To transfer expenses that are posted in Business Central to Moment, select this checkbox

#### Export customers

When enable transfer of customers, the dialog will show four more fields that must be configured.

<figure><img src="/files/Mz9ayDF7ybVpHrUP2sE0" alt=""><figcaption></figcaption></figure>

These fields are used to set correct company/customer group for a customer in Business Central, based on the customer's invoice address. (Domestic/Abroad)

These refer to "Gen. Business Posting Groups" and "Customer Posting Groups" in Business Central.

<figure><img src="/files/PmsegNA81kO14fqqpwto" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/PFtyV7nBAgxPdyZjA6gr" alt=""><figcaption></figcaption></figure>

#### Export projects

When enable transfer of projects, the dialog will show one additional field that must be configured.

<figure><img src="/files/hiWEftb0vpqGafrEMTc3" alt=""><figcaption></figcaption></figure>

Select the dimension that should be used for project. These are based of what's configured under General Ledger Setup in Business Central.

<figure><img src="/files/s8VSdXbYCf1dLtblsIma" alt=""><figcaption></figcaption></figure>

#### Export invoices

When enable transfer of invoices, the dialog will expand and show one more field to be configured. This field is used to define what dimension is used for department, as with project it relates to the configuration in General Ledger Setup.

<figure><img src="/files/WmfmgvaXxaK6aZMyEPFG" alt=""><figcaption></figcaption></figure>

When having selected the dimension, one are given the option to configure how department are defined in Moment, by the department object or by the use of a project tag group. Select based on the configuration selected in Moment.

#### Import expenses

When enable transfer of expenses, the dialog will expand and show three more fields to be configured.

<figure><img src="/files/LwlZFk0DkkzihPnjrXrU" alt=""><figcaption></figcaption></figure>

* From date: Defined the furthest back in time to get expenses from Business Central
* Expense activity: Write the name of the activity that shall be used for importing expenses. This activity is added to the projects when needed.&#x20;
* Imported expenses will be set as billable: Select this to have all expenses available to be invoiced. Any expenses that should be opposite of what's selected here must be changed manually.

### Notification

To be notified about any occurrences that will take place, select the user(s) that should get a notification. If the recipient is not registered in Moment as a user, this can be added by using their email address.

<figure><img src="/files/cCF1S2ztMnBTGzv4patB" alt=""><figcaption></figcaption></figure>

#### Notes

Need to keep notes about the integration, these can be stored here.&#x20;

<figure><img src="/files/K4NVvIqeWuEmt63eTJsn" alt=""><figcaption></figcaption></figure>

### Save configuration

When saving the configuration, Moment will verify the credentials. These may take some time, while this is being done you will be informed at the top of the screen.

<figure><img src="/files/0BZ9o4fzf2arTilfPpEb" alt=""><figcaption></figcaption></figure>

When done it shows "Created" or "Updated" (if save changes)

<figure><img src="/files/db4W84UU7zk0S7QdH6yz" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/4AEBxfqtbi3lPVzYXl6X" alt=""><figcaption></figcaption></figure>


---

# 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://docs.milientsoftware.com/help/moment-by-topic/integrations/real-time-integrations/business-central/configuration/moment.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.
