Start a conversation

Condition (<v-aux>)

Setting Up `<v-aux>` Component

Essential Attributes:

1. account-properties: List of profile and marketing properties to fetch.

   - Example: `account-properties='["m.Rank", "m.QV", "m.CommissionBase"]'`


2. **tree-id**: Specifies the tree for the primary position (optional).

   - Example: `tree-id="2"`


3. **callback**: Function to call after data is processed.

   - Example: `callback='nextRank'`#### Optional Attributes


4. **account-id**: Custom account ID (optional).

   - Example: `account-id="123"`


5. **number-periods-back**: Fetch data from the previous period if set to 1.

   - Example: `number-periods-back="1"`


6. **tree-id-last**: Tree for the previous period, used with `number-periods-back` (optional).

   - Example: `tree-id-last="1"`

Example Usage

```jsx

<v-aux

  account-properties='["m.Rank", "m.QV","m.CommissionBase", "m.PV", "m.PS", "m.LeftVol", "m.RightVol"]'

  tree-id="2"

  callback='nextRank'

  number-periods-back="1"

  tree-id-last="1">

</v-aux>

```

Output

- Access properties via `accountProperties['property']`.

- Callback result and user info are logged in the console.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Vasilii G

  2. Posted
  3. Updated

Comments