Skip to content

Commit e01e0e1

Browse files
authored
Merge pull request #6385 from segmentio/spencerattick-patch-7
Add information about sending to a Segment source
2 parents 2fdcd7e + 3f31cad commit e01e0e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/connections/functions/destination-functions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ If you're sending your batch to an external service, the execution time of the f
433433

434434
{% include content/ip-allowlist.md %}
435435

436+
##### Can I use a Destination Function to send data to another Segment source?
437+
Yes, to do so, remove the `messageId` and the `writeKey` from the payload in your Function code. Leaving either field on your payload will cause unexpected behavior that may cause your event to be delivered to the wrong source or to not be delivered at all.
438+
436439
##### Can I view console.log() outputs in Destination Functions?
437440

438441
Incorporating console.log() statements in your Destination Function code aids in debugging. However, logs generated by these statements will only be accessible in the [Event Delivery](/docs/connections/event-delivery/) view if the payloads encounter errors during processing. Logs from successfully processed payloads are not displayed.

0 commit comments

Comments
 (0)