> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/whatsapp4dynamics/configuration/configuring-whatsapp4dynamics/2.-how-to-create-whatsapp4dynamics-configuration-using-whatsapp-business-api-waba.md).

# 2. How to create WhatsApp4Dynamics configuration using WhatsApp Business API (WABA)

To create a WhatsApp4Dynamics configuration using WhatsApp Business API (WABA), just follow the below steps:

### 1. Go to the Sender Configuration to create a new configuration:

a. Open **WhatsApp4Dynamics** and change the subarea to Administration.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FI3n0rxP6CMrFrtU7QLJO%2F1a.png?alt=media&amp;token=a9eb6f0d-4709-4114-8949-61713060f757" alt=""><figcaption></figcaption></figure>

b. Click on **+Add sender** button.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FK2sGYBsZp1IIG8Qg61Hg%2F1b.png?alt=media&amp;token=d40a9922-3f9b-43b5-ae3d-4ae4c81b0efc" alt=""><figcaption></figcaption></figure>

c. Click on **WhatsApp Business API (legacy)** option to set started.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FEKH4MULJMXkzTJuYV6ad%2F1c.png?alt=media&amp;token=424b247c-d262-497a-8e04-aef23e6df78f" alt=""><figcaption></figcaption></figure>

### 2. Enter Your Account Details

On the next page, enter your **mobile number, WhatsApp Business Account ID**, and **Permanent Access Token,** and choose the **phone number type.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Faco8fsIJBdVh8Ks5xFvA%2F2.png?alt=media&amp;token=68b96aea-39f6-491b-b519-33a1f87155d1" alt=""><figcaption></figcaption></figure>

a. **Mobile number:** Copy the mobile number of your WABA account and paste it into the **Mobile number** field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F22COe3kGrYyutvfvmBVV%2F2a.png?alt=media&amp;token=09bf11d3-89c4-40e7-94a9-4b5e78c3509f" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fy7VKuEX95XRCE6YJQwrC%2F2aa.png?alt=media&amp;token=5da67a6c-f468-47ea-9362-07b0b4edcbfe" alt=""><figcaption></figcaption></figure>

b. **WhatsApp Business Account ID (WABA ID):** Copy the WABA ID from your WABA account and paste it into the **WhatsApp Business Account ID** field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FhubY3FfkRiOhicZAkAyb%2F2b.png?alt=media&amp;token=21e3137f-21b5-4e0a-9409-1bc9ce731190" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F5JlbBtWxUK6bE1FHLNfN%2F2bb.png?alt=media&amp;token=97161a18-c344-44bb-9bf6-706159871857" alt=""><figcaption></figcaption></figure>

c. **Permanent Access Token:** Copy the Permanent Access Token provided by Meta and paste it into the **Permanent Access Token** field. If you don’t have one, follow [this guide](https://docs.inogic.com/whatsapp4dynamics/configuration/configuration/whatsapp-business-api/generate-permanent-access-token-from-waba) to generate a new token.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FLXEe0Y5jmZxY43jvDt1R%2F2c.png?alt=media&amp;token=a1d08cd2-4a96-4bd9-a6f0-9873898872b3" alt=""><figcaption></figcaption></figure>

d. **Phone Number Type:** Choose the correct type:

* **Production number:** A paid number.
* **Test number:** A temporary number provided by Meta for a test account.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fc1MHK1S4sak1uN05VdgH%2F2d.png?alt=media&amp;token=29ceb0a6-4338-408c-a892-997ec92ae631" alt=""><figcaption></figcaption></figure>

e. Click **Validate & Connect** to continue the setup.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FG3saVPn49FDCabWFahN8%2F2e.png?alt=media&amp;token=6781dcfc-1603-45e9-8d10-5a98478ae757" alt=""><figcaption></figcaption></figure>

### 3. Enter Your App Secret and Webhook URL

On the next page, enter your App Secret and paste the Power Automate flow URL.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FZ7oRuu2TIVFvprZAyewq%2F3.png?alt=media&amp;token=fa41c06b-0916-4728-9a79-49cf16eb0a71" alt=""><figcaption></figcaption></figure>

a. **App ID:** This field is auto-populated based on the Permanent Access Token you entered on the previous page.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FI00d1nSjAy0tV84eMFPw%2F3a.png?alt=media&amp;token=fd8cb485-4833-4b4b-866a-5e4bbd7770ff" alt=""><figcaption></figcaption></figure>

b. **App Secret:** Copy the App Secret from your WABA app’s basic settings and paste it into the **App Secret** field.&#x20;

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F67fcbaGvTkMC6YxkNPmZ%2F3b.png?alt=media&amp;token=3750b188-4d9f-4512-95dc-5ee332f6f67d" alt=""><figcaption></figcaption></figure>

To find it, click **Show**, enter your password when prompted, and then copy the secret and paste it in the setup page.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F7anPVs4y9OkK9NZ6DdBk%2F3bb.png?alt=media&amp;token=0e0e9cba-fbd7-4e32-ba95-5e47758c3b53" alt=""><figcaption></figcaption></figure>

c. **Webhook URL:** Copy the Webhook URL from the **WhatsApp4Dynamics – WhatsAppBusinessAPI WhatsApp4Dynamics Real-time Chat Logging** Power Automate flow in Power Apps and paste it into the **Webhook URL** field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F743VLsxWhxZQhNzNggNs%2F3c.png?alt=media&amp;token=6cb0c97f-83be-4a0d-8e63-8a75e5a96c9a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FwabSv1ycGyIdJdAje55M%2F3cc.png?alt=media&amp;token=a5d0758d-4ee8-42a3-92bc-a87d26515ab4" alt=""><figcaption></figcaption></figure>

d. Click **Subscribe & Continue** to finish the setup.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FuxN295De3QEVkWIkLica%2F3d.png?alt=media&amp;token=b759af89-81a2-4361-abca-265f005ec01d" alt=""><figcaption></figcaption></figure>

Your WhatsApp4Dynamics configuration is now complete, and you can start sending and receiving WhatsApp messages from Dynamics 365 CRM.
