# Test case

First, setup 1 customer to test with according the the '[Customers](/freemium/user-guide/customers.md)' section in the 'User Guide'.

{% hint style="danger" %}
**IMPORTANT** - To be able to run this test you need a Sales Invoice that we will later 'Post'. If your using a real invoice for the test, put yourself as the email receiver first to confirm it works.
{% endhint %}

* In Business Central, search and go to the page "Sales Invoices"

![](/files/-M69Hu79wSWvH39T7Qo3)

* Open the sales invoice that you want to run the test with.
* Under the "Invoice Details" section, you will find the field 'GEDI Profile'. Change this to 'PDF-BC', in order to activate the functionality.

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

* 'Post' the invoice.
* If you search and go to the page 'Posted Sales Invoice' you can find a column with 'GEDI Status' - this should now have status 'Requested'.

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

* Search and go to the page 'GEDI Message Queue'.
* Here you will find a row with your invoice number in 'Message ID' column and with the 'Message Code' = 'SINV-81-MR', probably it's the last row in the list.
* Mark the row, and go to 'Home' tab and click 'Run Message' to manually trigger the invoice.

<figure><img src="/files/90j4VPe7jf9SrZKESIz1" alt=""><figcaption></figcaption></figure>

* If you go back to 'Posted Sales Invoices' you can see that the GEDI Status is now 'Sent'

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

{% hint style="success" %}
If you received the e-mail this means the test was successful and SMTP and customer configuration is correct.
{% endhint %}

{% hint style="warning" %}
If you changed the customer email to your own address for the test, don't forget to set it back to the correct customer email!
{% endhint %}

During this test you manually processed the message via our 'GEDI Message Queue', in the next step we will create and schedule 'Job Queue Entries' to handle this for us automatically in the background.


---

# 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.goldenedi.com/freemium/installation-guide/test-case.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.
