Skip to content

Commit 6c897b9

Browse files
add info about Actions destinations
1 parent 6fe793f commit 6c897b9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/connections/functions/insert-functions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,14 @@ If you don't supply a function for an event type, Segment throws an `EventNotSup
164164

165165
You can read more about [error handling](#destination-insert-functions-logs-and-errors) below.
166166

167+
## Insert Functions and Actions Destinations
168+
169+
There are a couple of behavorial nuances to consider when using Insert Functions with Actions destinations.
170+
171+
One thing to keep in mind is that Insert Functions block Actions destinations from triggering multiple mapping subscriptions for a single payload. If you have a single payload coming through the pipeline that you expect to trigger multiple mapping subscriptions in your configuration, that will work as expected without an Insert Function enabled. With an Insert Function enabled, however, when a payload that is meant to trigger multiple mappings subscriptions is seen you will find that none of the mappings subscriptions will fire. Please ensure that your payloads are only configured to trigger a single mapping subscription if you have an Insert Function enabeld on that destination.
172+
173+
Another thing to know is that a payload must come into the pipeline with the attributes that allow it to match your mapping triggers. You can't use an Insert Function to change the event to match your mapping triggers. If an event comes into an Actions destiantion and already matches a mapping trigger, that mapping subscription will fire. If a payload does not come to the Actions destination matching a mapping trigger, even if an Insert Function is meant to alter the event to allow to to match a trigger, it will not fire that mapping subscription. The mapping trigger is seen first in the pipeline so a payload won't make it to the Insert Function at all if it doesn't come into the pipeline matching a mapping trigger.
174+
167175
## Create settings and secrets
168176

169177
{% include content/functions/settings.md %}
@@ -311,10 +319,6 @@ No, destination insert functions are currently available as cloud-mode destinati
311319

312320
If you are a partner, looking to publish your destination and distribute your app through Segment catalog, visit the [Developer Center](https://segment.com/partners/developer-center/){:target="_blank"} and check out the Segment [partner docs](/docs/partners/).
313321

314-
##### Are there any nuances to consider in using Insert Functions with Actions destinations?
315-
316-
Yes. Without Insert Functions enabled, a single event could trigger multiple mappings. With Insert Functions enabled, though, events only trigger one Actions mapping, even if more than one mapping is set up to run when a particular event is seen.
317-
318322

319323
{% comment %}
320324

0 commit comments

Comments
 (0)