Map slack message to data struct in make

Hi Makers :wave: Newbie here hitting giant blockers and would love to pick your brains!

I try to parse slack message into make data struct. I would like to fill data struct fields from Blocks:Elements[1]elements and assign to each field in data struct array item from elements.

How can I do this?

Screenshot 2024-09-06 at 00.53.57

1 Like

Hi @OptimusBit ,
We have created a sample JSON based on the structure you shared.

If you want to retrieve the collections from each element, you can use the flatten and map functions.
Eg:-

We have tried using a sample JSON, and it’s retrieving all the details inside the ‘elements’.

Best regards,

Msquare Automation

Gold Partner of Make

@Msquare_Automation

1 Like

Thank you very much for your respons - can you tell me if I want to take only one value of email - will be:

get(flatten(map(8.Bundle.1:Blocks[]; Elements[].elements), 16.text) ?

how can I debug and display output of collection transform in make?

1 Like

Hi @OptimusBit
Workflow:

Sample structure created:


image
image

Output:

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

2 Likes

Thank you, you really help me :pray:

1 Like