Integrate Lark Approval Workflows
Use this guide to connect the international Lark approval service to NineData.
Before you begin
- You have already created or joined an organization, and the organization has subscribed to DevOps Enterprise. Please ensure that your annual or monthly subscription is still active. For more information, please refer to Manage Organizations.
- Your current account has been switched to the target organization. For more information, please refer to Switching to an Organization.
- Sign in to Lark Developer as a Lark administrator or application administrator.
- Sign in to NineData with system administrator permissions.
- Confirm that the current NineData organization is the authorized organization for this integration.
Notes
- Use Lark Developer for the international Lark service. Do not substitute the Feishu China Open Platform.
- Feishu and Feishu Lark are separate external approval channels in NineData.
- If automatic approval-definition initialization does not create a usable template, create the Lark approval definition manually and then create the mapping definition in NineData.
- The approval definition ID must come from the current Lark application.
Step 1: Create and publish a Lark approval application
- Open Lark Developer and sign in.
- Create an enterprise self-built application, or open an existing application.
- On Credentials and Basic Information, record the App ID and App Secret.
- In Permissions, enable at least
approval:approval,approval:approval:readonly,approval:definition, andcontact:user.id:readonly. - Create and publish a version from Version Management and Release.
Step 2: Bind the Lark approval channel in NineData
Sign in to the NineData Console.
- In the left navigation bar, click Database DevOps > Standards and Processes > Approval Processes > External Process Channels.
- Confirm that the panel contains Feishu, Feishu Lark, and IT Service Platform cards.
- Click Configure Now on the Feishu Lark card.
- Enter the App ID and App Secret, and click OK.
- Reopen the application details and record the Callback URL.
Step 3: Configure events and callbacks in Lark
- Open the same application in Lark Developer.
- Click Events and Callbacks.
- Set the subscription method to Send events to the developer server, enter the callback URL from Step 2, and save.
- Add the Approval Instance Status Change event and save the configuration.
Step 4: Prepare an approval definition in Lark
- Open the Lark Approval Admin.
- Create a custom approval.
- Prefer single-line text, multi-line text, and single-select controls when designing the form so that NineData can map fields reliably.
- Publish the approval definition and record its Approval Definition ID.
Step 5: Create an approval mapping definition in NineData
- Return to the External Process Channels panel and open Approval Process Mapping Definitions.
- Click Add Approval Process Definition.
- Select the Lark application, enter a name, and paste the Approval Definition ID.
- After NineData retrieves the approval fields, map the platform fields and option parameters, then save.
Step 6: Bind the mapping to an approval process
Sign in to the NineData Console.
- In the left navigation bar, click Database DevOps > Standards and Processes > Approval Processes.
- Select the target process and click Edit.
- Enable External Approval Process.
- Select the Feishu Lark application and the mapping definition created in Step 5, then save.
Troubleshooting
Automatic initialization reports that no approval template is available
Do not select automatic initialization. Finish channel binding, callback configuration, and event configuration first. Then create the approval definition and mapping definition manually.
Fields are not retrieved after entering an approval definition ID
Confirm that the ID belongs to the current Lark application, that the required permissions are enabled, and that the application is published.