> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# INTERSECTIONSET

> The INTERSECTIONSET function returns the intersection of two sets. It is available in multiple YiDA scenarios, including Form, workflow design, and integration & automation. The function takes two arrays as parameters and returns an array of common elements.

The **INTERSECTIONSET** function returns the intersection of two sets.

## Supported Scenarios

The INTERSECTIONSET function is available in the following YiDA scenarios:

* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
INTERSECTIONSET(arrayA,arrayB)
```

## Attribute Description

<table>
  <tr>
    <td>**Attribute**</td>
    <td>**Required**</td>
    <td>**Description**</td>
  </tr>

  <tr>
    <td>arrayA</td>
    <td>Yes</td>
    <td rowSpan={2}>The sets to intersect. Separate multiple sets with commas.<br />**Note**: Only intersections of member components are supported. This function cannot be used in a subform.</td>
  </tr>

  <tr>
    <td>arrayB</td>
    <td>Yes</td>
  </tr>
</table>

## Return Value

| **Return value type** | **Description**     |
| --------------------- | ------------------- |
| array                 | A list of user IDs. |

## Usage Example

Use the `INTERSECTIONSET()` and `EMPLOYEE()` functions to calculate the intersection of two member components.
