Expand my Community achievements bar.

SOLVED

Query to Snowflake and Processing Data

Avatar

Level 4

Hello,

I have an easy question for the greater minds on here. I've created a simple https query to test snowflake environment. I'm trying to process the data I receive by iterating through it and I'm having some difficulty with that step.  

In detail - 
1. The returned results look like this - 

D____D_0-1742827080744.png

2. the data is captured into a module that looks like this 

D____D_1-1742827119825.png

3. Sample of data when passing through this get Data.data module

D____D_2-1742827143948.png

4. This is converted into an Array 

 
 

Screenshot 2025-03-24 at 10.30.42.png

 5. Then iterated ... 

Screenshot 2025-03-24 at 10.31.30.png

Question - If I only wanted to read the email column in the next module, how do I do that? 

 
 

 



Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

So it turns out that it was the approach, after all, and the iterator module. I don't think the Adobe rep can actually say that   but the solution presented does not even use an iterator but instead focuses on creating a repeater using the HTTP DATA module output only - not that far from what you suggested but with a slightly different approach.

 

- get the data

- use the number of rows value from data to set a repeater 

- compose a string to use in another string - depth

- compose a string within a get ( ) data function, like what you had suggested to get the value

D____D_0-1743029398046.png

 

repeater config

D____D_1-1743029478375.png

first compose string

D____D_2-1743029493386.png

final compose string (ignore the double quotes and "+" symbols)

D____D_3-1743029504376.png

actual configuration looks like this:

D____D_0-1743029717852.png

 

 

results

D____D_4-1743029515267.png

 

 

View solution in original post

21 Replies

Avatar

Level 4

I agree; it's not elegant; beggars are not choosers.  I also don't think the 3rd module is required, it seems like overkill. I'll probably attempt to shrink it down further.  The way I see it, there's got to be a better way but for now, it will have to do.