From 10d0b32a62f11e2da7d257a7133d73db64c33f45 Mon Sep 17 00:00:00 2001 From: Spencer Attick <23665784+spencerattick@users.noreply.github.com> Date: Tue, 22 Oct 2024 09:45:34 -0400 Subject: [PATCH 1/2] Source Function custom response --- src/connections/functions/source-functions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connections/functions/source-functions.md b/src/connections/functions/source-functions.md index 2a83322376..33ae2d14cc 100644 --- a/src/connections/functions/source-functions.md +++ b/src/connections/functions/source-functions.md @@ -434,3 +434,7 @@ No. Tracking Pixels operate client-side only and need to be loaded onto your web ##### What is the maximum data size that can be displayed in console.logs() when testing a Function? The test function interface has a 4KB console logging limit. Outputs surpassing this limit will not be visible in the user interface. + +#### Can I send a custom response out from my Source Function to an external tool? + +No, at this time Source Functions do not allow for custom responses to be sent to the tool that made a request to the Function's webhook. This is because of the way Functions leverage AWS Lambda on the backend. Functions will either respond with a success or failure response and cannot emit a custom response. From 510e5e5bf20511b178ed9647a2f36b6966fec84f Mon Sep 17 00:00:00 2001 From: pwseg <86626706+pwseg@users.noreply.github.com> Date: Tue, 22 Oct 2024 13:14:13 -0500 Subject: [PATCH 2/2] cleanup I don't think all the under-the-hood details are necessary here. --- src/connections/functions/source-functions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connections/functions/source-functions.md b/src/connections/functions/source-functions.md index 33ae2d14cc..646db8e948 100644 --- a/src/connections/functions/source-functions.md +++ b/src/connections/functions/source-functions.md @@ -435,6 +435,6 @@ No. Tracking Pixels operate client-side only and need to be loaded onto your web The test function interface has a 4KB console logging limit. Outputs surpassing this limit will not be visible in the user interface. -#### Can I send a custom response out from my Source Function to an external tool? +#### Can I send a custom response from my Source Function to an external tool? -No, at this time Source Functions do not allow for custom responses to be sent to the tool that made a request to the Function's webhook. This is because of the way Functions leverage AWS Lambda on the backend. Functions will either respond with a success or failure response and cannot emit a custom response. +No, Source Functions can't send custom responses to the tool that triggered the Function's webhook. Source Functions can only send a success or failure response, not a custom one.