# Test case

First, setup 1 customer to test with according the the '[Customers](https://docs.goldenedi.com/freemium/user-guide/customers)' 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"

![](https://713365273-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M64fo8oEu5prbfhnsa-%2F-M69-pH1-t-x8RgzDpbo%2F-M69Hu79wSWvH39T7Qo3%2Fbild.png?alt=media\&token=8be73ec4-322d-4024-9618-d7c40115b5c9)

* 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="https://713365273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M64fo8oEu5prbfhnsa-%2Fuploads%2FmxVjU0dZYZ9D7fEnsYRF%2Fimage.png?alt=media&#x26;token=683e20ea-2366-43e7-aa0a-c2866953aece" 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="https://713365273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M64fo8oEu5prbfhnsa-%2Fuploads%2Fz333jLln612E9JvrJbHp%2Fimage.png?alt=media&#x26;token=636d28e3-f88c-45fe-a21e-bb5635713aa7" 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="https://713365273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M64fo8oEu5prbfhnsa-%2Fuploads%2FPjRi9HRLd5SgxZRxtdtU%2Fimage.png?alt=media&#x26;token=29f8f6d5-3883-4c4e-89ce-88987710306f" 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="https://713365273-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M64fo8oEu5prbfhnsa-%2Fuploads%2FiUFpukKfzhfg1mi7dKoX%2Fimage.png?alt=media&#x26;token=628beac3-7ba7-4d9c-aef2-0d24e751f877" 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.
