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

# Get Run Results with Make

> Step-by-step guide to fetching Captain Data job results using Make.

## Example: use Make with Captain Data to get your Outbound results

<iframe width="100%" height="400" src="https://www.loom.com/embed/9471edb925854d4d842a632a2a3b562c" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

You can also follow this Guideflow to use a Webhook and the List Job Results module to automatically send Captain Data job results to Make. From there, you can add modules to update data in your outreach tool, CRM, spreadsheets, or other platforms

<iframe frameborder="0" width="100%" height="460px" allowfullscreen src="https://app.guideflow.com/embed/xrgmx5t1r0" />

## Handle errors if your Run does not return results

<iframe frameborder="0" width="100%" height="460px" allowfullscreen src="https://app.guideflow.com/embed/gkynd6s4rn" />

<Note>
  For more information check out their article: [Introduction to Error
  Handling](https://www.make.com/en/help/errors/introduction-to-error-handling#introduction-to-error-handling)
</Note>

You might also want to check how-to [Launch a workflow with Make](/v3/ecosystem/make/launch-workflow).

## Blueprint: Send Slack Notifications from Captain Data

Follow this process to send Slack notfications after fetching Captain Data Run's results:

1. **Create Webhook**: Make a webhook and add it to Captain Data.
2. **Set Up in Captain Data**: Add a webhook, name it, and set it to trigger on workflow success.
3. **Test Webhook**: Run the module to test with a completed job ID.
4. **List Job Results**: Use Captain Data module to list job results with job UID.
5. **Handle Errors**: Add an error handler for cases with no results.
6. **Send Slack Message**: Customize your Slack message with Captain Data info and map data points.

You can use the following JSON blueprint:

```json
{
  "name": "CD > Slack Notifications",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "hook": null,
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        },
        "restore": {
          "parameters": {
            "hook": {
              "label": "",
              "data": {
                "editable": "true"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "hook",
            "type": "hook:gateway-webhook",
            "label": "Webhook",
            "required": true
          },
          {
            "name": "maxResults",
            "type": "number",
            "label": "Maximum number of results"
          }
        ]
      }
    },
    {
      "id": 5,
      "module": "captain-data:getJobs",
      "version": 1,
      "parameters": {
        "__IMTCONN__": null
      },
      "mapper": {
        "job_uid": "{{1.job_uid}}",
        "begining_page": "1"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        },
        "restore": {
          "parameters": {
            "__IMTCONN__": {
              "label": "",
              "data": {
                "scoped": "true",
                "connection": ""
              }
            }
          }
        },
        "parameters": [
          {
            "name": "__IMTCONN__",
            "type": "",
            "label": "",
            "required": true
          }
        ],
        "expect": [
          {
            "name": "job_uid",
            "type": "text",
            "label": "Job UID",
            "required": true
          },
          {
            "name": "begining_page",
            "type": "number",
            "label": "First page to retrieve (offset)",
            "required": true
          }
        ]
      },
      "onerror": [
        {
          "id": 7,
          "module": "builtin:Ignore",
          "version": 1,
          "metadata": {
            "designer": {
              "x": 576,
              "y": 208
            }
          }
        }
      ]
    },
    {
      "id": 6,
      "module": "slack:CreateMessage",
      "version": 4,
      "parameters": {
        "__IMTCONN__": null
      },
      "mapper": {
        "channelWType": "list",
        "text": "Create your Slack Message",
        "parse": false,
        "mrkdwn": true,
        "channelType": "",
        "channel": "Select your channel"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": -150
        },
        "restore": {
          "parameters": {
            "__IMTCONN__": {
              "label": "",
              "data": {
                "scoped": "true",
                "connection": ""
              }
            }
          },
          "expect": {
            "channelWType": {
              "label": ""
            },
            "reply_broadcast": {
              "mode": "chose"
            },
            "link_names": {
              "mode": "chose"
            },
            "parse": {
              "mode": "chose"
            },
            "mrkdwn": {
              "mode": "chose"
            },
            "unfurl_links": {
              "mode": "chose"
            },
            "unfurl_media": {
              "mode": "chose"
            },
            "channelType": {
              "label": "Private channel"
            },
            "channel": {
              "mode": "edit"
            }
          }
        },
        "parameters": [
          {
            "name": "__IMTCONN__",
            "type": "",
            "label": "Connection",
            "required": true
          }
        ],
        "expect": [
          {
            "name": "channelWType",
            "type": "select",
            "label": "Enter a channel ID or name",
            "required": true,
            "validate": {
              "enum": ["manualy", "list"]
            }
          },
          {
            "name": "text",
            "type": "text",
            "label": "Text"
          },
          {
            "name": "blocks",
            "type": "text",
            "label": "Blocks"
          },
          {
            "name": "thread_ts",
            "type": "text",
            "label": "Thread message ID (time stamp)"
          },
          {
            "name": "reply_broadcast",
            "type": "boolean",
            "label": "Reply broadcast"
          },
          {
            "name": "link_names",
            "type": "boolean",
            "label": "Link names"
          },
          {
            "name": "parse",
            "type": "boolean",
            "label": "Parse message text"
          },
          {
            "name": "mrkdwn",
            "type": "boolean",
            "label": "Use markdown"
          },
          {
            "name": "unfurl_links",
            "type": "boolean",
            "label": "Unfurl primarily text-based content"
          },
          {
            "name": "unfurl_media",
            "type": "boolean",
            "label": "Unfurl media content"
          },
          {
            "name": "icon_emoji",
            "type": "text",
            "label": "Icon emoji"
          },
          {
            "name": "icon_url",
            "type": "url",
            "label": "Icon url"
          },
          {
            "name": "username",
            "type": "text",
            "label": "User name"
          },
          {
            "name": "channelType",
            "type": "select",
            "label": "Channel type",
            "required": true,
            "validate": {
              "enum": ["public", "private", "im", "mpim"]
            }
          },
          {
            "name": "channel",
            "type": "select",
            "label": "Private channel",
            "required": true
          }
        ]
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "zone": "eu2.make.com",
    "notes": []
  }
}
```
