4 min read

Documentation for listAppRequests

Purpose

The node is designed to facilitate the fetching of app requests from a Slack workspace. It connects to the Slack API through a built connection instance and fetches details based on specified parameters such as team ID, enterprise ID, and limits on the number of requests returned. This functionality is crucial for integrating Slack app requests into various analytics and data workflows.

Settings

1. teamId

2. enterpriseId

3. includeCertified

4. limit

5. cursor

How It Works

  1. Initialization: The function begins by extracting input values such as teamId, enterpriseId, includeCertified, limit, and cursor. These values are prioritized first from the inputs parameter, then from the config, and default to predefined values when not specified.

  2. Establishing Connection: Utilizing the utility the integration connection, the function creates a connection to the Slack API by specifying 'slack' as the integration type, along with the context provided in the function call.

  3. Fetching Data: The app requests are fetched using the listAppRequests method on the created integration instance. It passes the parameters gathered from the previous step to this method.

  4. Error Handling: If an error occurs during the API call, it returns an error message indicating an internal error.

  5. Return Data: In a successful execution, the function returns the fetched app requests in an output1 field.

Data Expectations

Use Cases & Examples

Use Case 1: Analyze App Integration Requests

An organization with multiple Slack teams can track and analyze app requests submitted by team members to determine which applications are most commonly requested and their approval statuses.

Use Case 2: App Compliance Monitoring

A company may need to ensure that the apps being requested meet compliance requirements. By retrieving certified apps, compliance officers can gather relevant data for audits or reviews.

Example Configuration

To implement Use Case 1, where an organization wants to analyze app requests from a specific team, the following configuration can be used:

json
{
  "inputs": {
    "teamId": "T01234567",
    "includeCertified": true,
    "limit": 50,
    "cursor": null
  },
  "config": {
    "teamId": null,
    "enterpriseId": null,
    "includeCertified": true,
    "limit": 100,
    "cursor": null
  },
  "context": {
    "authToken": "xoxb-1234567890-abcdefg"
  }
}

In this configuration:

This configuration would retrieve up to 50 app requests specifically from team "T01234567", providing insight into app integration trends within that team.