# Adding Next Best Action PCF section in CRM

Follow the steps below to add the Next Best Action PCF component to your CRM form:

**Using Power Apps**

1\.   Open **make.powerapps.com** and navigate to **Tables**.\
\
Search for the desired entity (for example, *Lead*) and select the standard table.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F9wqV5inJVSfYi8Mk9kk8%2F1..png?alt=media&#x26;token=c533659d-0396-451f-b319-3f9e937eda9c" alt=""><figcaption></figcaption></figure>

2\. Click on **Forms** to view all available forms associated with the selected table.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fltt9ZKfsXRrxUl99WAnc%2F2..png?alt=media&#x26;token=67b2f456-b2a4-4ddd-a1d5-d01f03c4ab5b" alt=""><figcaption></figcaption></figure>

3. From the list of forms, identify the form with:

* Form Type: Main
* Status: On

Click to open it in the form editor. This is the primary form where the PCF component will be added.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FApttrrzVnjryLbEp8XDS%2F3..png?alt=media&#x26;token=8124220f-9f08-418d-8df8-dc5e035b8092" 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%2FsMIN7uCs9aF9DpLG4l35%2F4..png?alt=media&#x26;token=2df89d23-5cef-4ec3-9ba8-a9df101a94ec" alt=""><figcaption></figcaption></figure>

4. Add a new section in the desired area of the form where you want to display Next Best Actions.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FSaWh0PcndawP9vqoVxSv%2F5..png?alt=media&#x26;token=1fd03391-ff8e-4845-b2b8-5d801dacd40c" alt=""><figcaption></figcaption></figure>

5. Insert a Subgrid within the section and configure it to display:

&#x20;     View: *Next Best Action (Cards)* or *Next Best Action Timeline*

&#x20;     *(Example: All Next Best Actions View)*

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FSss5J0S1kdTkltrgUGI3%2F6..png?alt=media&#x26;token=ad90b800-38d4-496a-aef0-5432100ed417" alt=""><figcaption></figcaption></figure>

6. Save and publish the form.

**Classic Setup**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FOplwfiO1sKKB433fzZSj%2F1.%20classic.png?alt=media&#x26;token=8ac4cd1d-c44f-45fd-83d0-da717ad71a16" 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%2FauoV6WyqIilVEInJOnSo%2F2.%20classic.png?alt=media&#x26;token=85ae6e0c-536c-44de-b3fb-bf6f0cb3c83d" alt=""><figcaption></figcaption></figure>

In the form editor, scroll to the bottom and select Add Component. If the component is not visible, use the search option to find it.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FrdOO8bRMto9F6pBHjhRk%2F3.%20classic.png?alt=media&#x26;token=2b2e14dc-853b-4f1a-a367-17833cec49ab" alt=""><figcaption></figcaption></figure>

Select the **Next Best Action PCF component** and click **Done**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F6uc9FDqCt0coThOkCXm3%2F4.%20classic.png?alt=media&#x26;token=982ecda4-f4ca-4442-8f0d-3ef462d0ebd6" alt=""><figcaption></figcaption></figure>

Save and publish the form.
