# Copy URL from Power Automate Flow

Before proceeding with the Configuration, you need to copy the URL of Power Automate Flow – “**Real-Time Chat Logging**” which is shipped in our solution and paste it into the Configuration field of Sandbox Setting in Twilio.

{% hint style="info" %}
**Note: If this step is not performed, you will not be able to receive any messages on the CRM.**
{% endhint %}

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FEGGxieiPjulajgji3rqK%2Fw4d3.png?alt=media&#x26;token=40473a3d-6549-46ad-9b95-4f83f05a0929" alt=""><figcaption></figcaption></figure>

* Go to **Power Automate** in Dynamics 365.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FF2nVDe0EusU5wMCXbMnc%2Fw4d4.png?alt=media&#x26;token=742e889c-bd82-4f34-9af9-265d8fddc876" alt=""><figcaption></figcaption></figure>

* Choose the environment in which the **Solution** is imported.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FIaUKx3qL8X1gtD45dEPj%2Fw4d5.png?alt=media&#x26;token=12cb1ae3-cdf5-4b5d-a9e9-b97125f1a637" alt=""><figcaption></figcaption></figure>

* In the list of **Solutions**, click **WhatsApp4Dynamics**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F9uOjGZAP9NI9SVGAceQi%2Fw4d6.png?alt=media&#x26;token=3aecf6ed-c8fb-454d-a125-0f9cb3257742" alt=""><figcaption></figcaption></figure>

* WhatsApp4Dynamics Solution will open, then navigate to **My Flows** and click **Real-time Chat Logging.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FWiFkkD8dnkb4P94l0HqG%2Fmy%20flows.png?alt=media&#x26;token=bea52b20-1289-44c2-8420-825fe09a0b97" alt=""><figcaption></figcaption></figure>

* Click on the **Edit button** inside **Real-time Chat Logging** in **My Flows.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FMuJIkAyAax6Yj2HGhMvb%2Freal%20time%20chat%20logging%20edit.png?alt=media&#x26;token=7248c3ea-3bbf-4e9c-a0b5-0210a55b5d3a" alt=""><figcaption></figcaption></figure>

* When the flow opens, always click on the first step of the flow.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FqAAXnErDUSO9zG1ppRRr%2Fflow.png?alt=media&#x26;token=e8614cf0-bb65-4938-ad90-516de59b0f66" alt=""><figcaption></figcaption></figure>

* Copy the **HTTP URL.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FFR8oCP3pq8BENXXQ3Vg5%2FHTTP.png?alt=media&#x26;token=58f59245-afab-48b8-aec5-d1ceaff4b159" alt=""><figcaption></figcaption></figure>

* Paste the URL in the **Sandbox Configuration** section to send and receive messages from the Sandbox to your Application.
* The same URL will be pasted on the “**When a message comes in**” section as well as the **“Status callback URL”**. The Method dropdown menu should be set to POST.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FQRaIc8tWk7EthwwqKirO%2Fw4d10.png?alt=media&#x26;token=e5be35f8-9782-416d-87e0-cf9462a42a0d" alt=""><figcaption></figcaption></figure>

* Click **Save** to save the URLs pasted.
* Return to the **Twilio Home page.**
* Click on **Services** -> Select **Messaging Service SID**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FJw1avxOlJb07qhRo1PWJ%2Fsteps%201%20--twilio-messaging-services.png?alt=media&#x26;token=d1f717d9-fc8b-450b-a24e-40925e8cca9a" alt=""><figcaption></figcaption></figure>

* A new **Sitemap** will appear -> Choose **Integration**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fp3X6anhWTCxW6J2whrLA%2FIntegration.png?alt=media&#x26;token=394b9e57-a860-47c8-925c-1796992f48b9" alt=""><figcaption></figcaption></figure>

* Select the **3rd option** – **Send a Webhook.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F0Qvxe2Z2fLQ0blR3FpOj%2Fsend%20a%20webhook.png?alt=media&#x26;token=c7b61bf4-b044-4c01-9163-d66504772ad9" alt=""><figcaption></figcaption></figure>

* Paste the **HTTP URL** in the **Fallback** and **Request URL** fields. Both the Method dropdown tab should be set to **POST**.
* Also, paste the **HTTP URL** in the **Callback URL** field.
* Click **Save** and then **Validate**.

{% hint style="info" %}
**Note: It may take 1 or 2 minutes to validate, and you will receive a notification once the validation is complete.**
{% endhint %}

{% hint style="success" %}
For further queries, reach out to us at <crm@inogic.com>
{% endhint %}
