# Configuring Multi Policy using UI

1. [Step By Step Process](#id-1.-step-by-step-process)
2. [Demo Video](#demo-video)

## 1. Step By Step Process

### 1. Registration of Primary Policy

Step 1: Need to click on the linking icon for the policy, which you wanted to be a primary one as shown below:

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-6b764c5591ac19a5101dcabaab9d9e9355cd2127%2Fimage%20(4).png?alt=media&#x26;token=28273192-9862-44ac-8487-d9b33bc7e2fd" alt=""><figcaption></figcaption></figure>

Step 2: We get a policy linking pop up to create a link for the primary policy or joining an existing policy:

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-db3a31549d26510107401c4103721dea2b039d7a%2Fimage%20(7)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

After the ‘primary’ policy is registered a special ‘link’ becomes accessible which can be used to ‘connect’ additional ‘secondary’ policies.

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-4793a1f109001efe97d8fe015e3cc7824ae72af4%2Fimage%20(2).png?alt=media&#x26;token=2d6a6114-ca92-434f-997d-4b8759c0317a" alt=""><figcaption></figcaption></figure>

### 2. Connecting Secondary Policies

Step 1: We click again on the linking icon for secondary policy and will get a linking pop up as shown below:

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-96f40a385a37f4620f54cf4b58950dd4b557560c%2Fimage%20(3).png?alt=media&#x26;token=60d62684-766c-469a-a694-cc3e8b5f4a56" alt=""><figcaption></figcaption></figure>

Step 2: In order to make the policy as secondary, we will click on Join button and link with the primary policy.

Step 3: Once, linking is performed successfully, you will get below message:

<figure><img src="https://1556785885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNYWPEEAknX9Vki1yV5HY%2Fuploads%2Fgit-blob-9ccc1d05f9d967a7de2e37ee82f5655b58169894%2Fimage%20(5)%20(6).png?alt=media" alt=""><figcaption></figcaption></figure>

### 3. **Message Format**

Synchronization topic contains two types of messages:

**3.1 Messages on linking the policies:**

| **Property** | **Description**                       | **Example**                          |
| ------------ | ------------------------------------- | ------------------------------------ |
| Id           | Message ID                            | a506d61c-9027-4b75-9dd6-3be126b6f9bf |
| status       | Message Status                        | "ISSUE"                              |
| type         | Message Type                          | "Synchronization Event"              |
| action       | Action Type                           | "create-multi-policy"                |
| lang         | Language                              | "en-US"                              |
| user         | User ID (Hedera Account ID)           | "0.0.47678906"                       |
| policy       | Policy ID (Hedera Topic ID)           | "0.0.48983405"                       |
| policyType   | Policy type (Main\|Sub)               | "Main"                               |
| policyOwner  | Standard Registry (Hedera Account ID) | "0.0.47678905"                       |

**3.2 Token mint messages**

| **Property** | **Description**                                                  | **Example**                            |
| ------------ | ---------------------------------------------------------------- | -------------------------------------- |
| id           | Message ID                                                       | "a506d61c-9027-4b75-9dd6-3be126b6f9bf" |
| status       | Message Status                                                   | "ISSUE"                                |
| type         | Message Type                                                     | "Synchronization Event"                |
| action       | Action Type                                                      | "mint"                                 |
| lang         | Language                                                         | "en-US"                                |
| user         | User ID (Hedera Account ID)                                      | "0.0.47678906"                         |
| policy       | Policy ID (Hedera Topic ID)                                      | "0.0.48983405"                         |
| policyType   | Policy type (Main\|Sub)                                          | "Main"                                 |
| policyOwner  | Standard Registry (Hedera Account ID)                            | "0.0.47678905"                         |
| messageId    | Link to the VP document of the mint                              | "1669634325.005962003"                 |
| tokenId      | Token ID which needs to be minted                                | "0.0.48983329"                         |
| amount       | Amount of tokens to mint                                         | 5                                      |
| memo         | Memo                                                             | "1669634325.005962003"                 |
| target       | User account ID to receive the minted tokens (Hedera Account ID) | "0.0.47678906"                         |

## Demo Video

[Youtube](https://www.youtube.com/watch?v=wcOb19Pr-yo\&list=PLnld0e1pwLhqb69cELqQrW87JFVIDfocL\&index=31\&t=347s)
