From e16f47859e509c263d06779499daf5a4998972fc Mon Sep 17 00:00:00 2001 From: Panandhan22 <115441424+Panandhan22@users.noreply.github.com> Date: Wed, 29 Mar 2023 16:29:59 +0800 Subject: [PATCH 1/3] Update destination-functions.md --- src/connections/functions/destination-functions.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/connections/functions/destination-functions.md b/src/connections/functions/destination-functions.md index f3cb339d4c..7b83dbecde 100644 --- a/src/connections/functions/destination-functions.md +++ b/src/connections/functions/destination-functions.md @@ -158,6 +158,9 @@ async function onTrack(request, settings) { When you deploy your destination function in your workspace, you fill out the settings on the destination configuration page, similar to how you would configure a normal destination. +> info "" +> settings can't be accessed as a global variable in the code. It has to be passed to the function at runtime. + ## Test the destination function You can test your code directly from the editor in two ways: From 62c4a46acfa7556143afd6331d5878d98a950bfb Mon Sep 17 00:00:00 2001 From: Panandhan22 <115441424+Panandhan22@users.noreply.github.com> Date: Thu, 6 Apr 2023 16:58:14 +0800 Subject: [PATCH 2/3] Update destination-functions.md --- src/connections/functions/destination-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/functions/destination-functions.md b/src/connections/functions/destination-functions.md index 7b83dbecde..eb75a81adb 100644 --- a/src/connections/functions/destination-functions.md +++ b/src/connections/functions/destination-functions.md @@ -159,7 +159,7 @@ async function onTrack(request, settings) { When you deploy your destination function in your workspace, you fill out the settings on the destination configuration page, similar to how you would configure a normal destination. > info "" -> settings can't be accessed as a global variable in the code. It has to be passed to the function at runtime. +> The settings object can't be accessed as a global variable in the code. It has to be passed to the function at runtime. ## Test the destination function From a99db249d82fbdd683d91c33373e9ff305c191b6 Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Wed, 31 May 2023 13:55:46 -0700 Subject: [PATCH 3/3] Update src/connections/functions/destination-functions.md --- src/connections/functions/destination-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/functions/destination-functions.md b/src/connections/functions/destination-functions.md index eb75a81adb..6c5356eb38 100644 --- a/src/connections/functions/destination-functions.md +++ b/src/connections/functions/destination-functions.md @@ -159,7 +159,7 @@ async function onTrack(request, settings) { When you deploy your destination function in your workspace, you fill out the settings on the destination configuration page, similar to how you would configure a normal destination. > info "" -> The settings object can't be accessed as a global variable in the code. It has to be passed to the function at runtime. +> You must pass the settings object to the function at runtime. Functions can't access the settings object when it's stored as a global variable. ## Test the destination function