Skip to content

Commit 4a813e2

Browse files
authored
Update source-insert-functions to include review fixes.md
1 parent 35332e0 commit 4a813e2

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

src/connections/functions/source-insert-functions.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
title: Source Insert Functions
33
---
44

5-
> info "Source Insert Function is in Public Beta"
6-
> Source Insert Function is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
5+
Use Source Insert Functions to enrich, transform, or filter your data before it flows downstream to destinations.
76

8-
## Create source insert functions
7+
> info "Source Insert Function is in public beta"
8+
> Source Insert Function is in public beta, and Segment is actively working on this feature. Some functionality may change before it becomes generally available.
99
1010
There are two ways you can access source insert functions from your Segment workspace:
11-
- From the [Connections catalog](#using-the-catalog).
12-
- From the [Sources tab](#using-the-sources-tab).
11+
- From the Connections catalog.
12+
- From the Sources tab.
1313

14-
### Using the catalog
14+
## Creating a Source Insert Function
1515

1616
To create a source insert function from Segment’s catalog:
1717

@@ -23,9 +23,11 @@ To create a source insert function from Segment’s catalog:
2323

2424
4. Click **Next: Configure & Create** to add a function name, description (optional), and function logo (optional).
2525

26-
5. Click **Create Function** to save your insert function. The new source insert function displays in the Functions tab.
26+
5. Click **Create Function** to save your insert function. The new source insert function displays in the Functions tab.
27+
28+
You can also go to **Conections** > **Sources** to create a source insert function.
2729

28-
#### Coding the source insert function
30+
### Coding the source insert function
2931

3032
Insert functions can define handlers for the following message types:
3133
- `onIdentity`
@@ -36,15 +38,7 @@ Insert functions can define handlers for the following message types:
3638
- `onAlias`
3739
- `onDelete`
3840

39-
The default source code template includes handlers for all event types. Implement the types you need. For event types you want to send through, return the event in the respective event handler.
40-
41-
### Using the Sources tab
42-
43-
You can also create a source insert function from Sources.
44-
45-
1. Navigate to **Connections** > **Sources**.
46-
2. Select your source and go to the **Functions** tab.
47-
3. Click **Create insert function** to create your insert function from scratch.
41+
The default source code template includes handlers for all event types. Implement the types you need. For event types you want to send through, return the event in the respective event handler.
4842

4943
### Connecting a source insert function to a source
5044

@@ -68,9 +62,9 @@ You can `throw` the following pre-defined error types to indicate that the funct
6862

6963
This is similar to Source, Destination, and Insert Functions.
7064

71-
The errors listed are all permanent errors, except `RetryError`. When a `RetryError` is thrown, Segment will reattempt to run the function a set number of times before permanently erroring out.
65+
The errors listed are all permanent errors, except `RetryError`. When a `RetryError` is thrown, Segment reattempts to run the function a set number of times before permanently erroring out.
7266

73-
### FAQs
67+
## FAQs
7468

7569
##### Why does the Delivery Overview tab not display any errors that occur within the source insert function?
7670

0 commit comments

Comments
 (0)