Integration & Automation-integration DingTalk logs
1. Usage scenarios
Select member submit in the YIDA form to query the number of unread entries in the DingTalk log for statistics.
2. Procedure
2.1 Step 1: form design
2.1.1 Create and configure the unread log query table form
When submitting data, the connector action is triggered to initiate a query.
Procedure:
- Create a form named unread log query table 」.
- Add a member component named select employee and set it to required. (The operation is shown in Figure 2.1-1)

Figure 2.1-1 add and configure member components
- Click save in the upper-right corner of the page.
2.1.2 create and configure the Log Query Form
It is used to receive and display the data returned by the connector.
Procedure:
- Create a new form named log query record 」.
- Add a single-line text component named number of unread entries and set the status to read-only 」. (The operation is shown in Figure 2.1-2)

Figure 2.1-2 add and configure a single-line text component
- Click save in the upper-right corner of the page.
2.2 Step 2: configure the connector
For more information about YIDA connectors, see:Integration & Automation
Used to integrate DingTalk log data.
Procedure:
- Background management page Integration & automation> create Integration & Automation 」. (The operation is shown in Figure 2.2-1)

Figure 2.2-1 connector entry
- Name the connector "query the number of unread log entries", select "form event trigger" type and specify the form as "unread log query table"> click "OK" button. (The operation is shown in Figure 2.2-2)

Figure 2.2-2 New connector
- Configure form event trigger: the trigger condition is set to "created" and the data filtering condition is set to "all data 」. (The operation is shown in Figure 2.2-3)

Figure 2.2-3 configuration form trigger event
- Select connector application: Select the connector application as log and click the Next button. (The operation is shown in Figure 2.2-4)

Figure 2.2-4 select connector application
- Select connector execution action: Select "get unread logs" to execute the action, and click "next" button. (The operation is shown in Figure 2.2-5)

Figure 2.2-5 Select connector execution action
- Configure the connector and click save. (Operation is shown in Figure 2.2-6)

Figure 2.2-6 configuration connector execution action
- Add a new data node. (The operation is shown in Figure 2.2-7)

Figure 2.2-7 add new data node
- Configure the add data node. (The operation is shown in Figure 2.2-8)

Figure 2.2-8 configure the add data node
- Click save in the upper-right corner of the page and click Publish.
2.3 Step 3: Submit form data
Used to trigger the connector and receive the result returned by the connector.
Procedure:
Fill in the unread log query table form data and submit it. (The operation is shown in Figure 2.3-1)

Figure 2.3-1 submit form
3. Effect display

Figure 3.1 effect display