From dad69a89bc1125f296d4d9ea537af2e9b01f0c18 Mon Sep 17 00:00:00 2001 From: Spencer Attick <23665784+spencerattick@users.noreply.github.com> Date: Thu, 26 Dec 2024 12:28:21 -0500 Subject: [PATCH 1/2] Add flatten function info --- src/connections/destinations/actions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connections/destinations/actions.md b/src/connections/destinations/actions.md index 040d47fd55..0c4f15502f 100644 --- a/src/connections/destinations/actions.md +++ b/src/connections/destinations/actions.md @@ -207,6 +207,10 @@ The coalesce function takes a primary value and uses it if it is available. If t The replace function allows you to replace a string, integer, or boolean with a new value. You have the option to replace up to two values within a single field. +### Flatten function + +The flatten function allows you to flatten a nested object to an object with a depth of 1. Keys will be delimited by the configured separator. For example, an object like {a: { b: { c: 1 }, d: 2 } } will be converted to { 'a.b.c': 1, 'a.d': 2 }. + ### Conditions > info "" From b90858896d01bb877318514cb568395782b31a47 Mon Sep 17 00:00:00 2001 From: forstisabella <92472883+forstisabella@users.noreply.github.com> Date: Tue, 7 Jan 2025 08:58:25 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- src/connections/destinations/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/destinations/actions.md b/src/connections/destinations/actions.md index 0c4f15502f..df910f3cee 100644 --- a/src/connections/destinations/actions.md +++ b/src/connections/destinations/actions.md @@ -209,7 +209,7 @@ The replace function allows you to replace a string, integer, or boolean with a ### Flatten function -The flatten function allows you to flatten a nested object to an object with a depth of 1. Keys will be delimited by the configured separator. For example, an object like {a: { b: { c: 1 }, d: 2 } } will be converted to { 'a.b.c': 1, 'a.d': 2 }. +The flatten function allows you to flatten a nested object to an object with a depth of 1. Keys are delimited by the configured separator. For example, an object like {a: { b: { c: 1 }, d: 2 } } will be converted to { 'a.b.c': 1, 'a.d': 2 }. ### Conditions