How can I map request result using declarative style?

I’m creating a new declarative node. The output of the REST API is in this format:


How can I return just the result part?

Information on your n8n setup

  • n8n version: 0.209.3

Hi @rostamiani,
you could use a special routing.output.postReceive function called rootProperty like this


Here is an example how the HighLevel node’s operation is using it.

1 Like

Is there any documentation about postReceive?

We have some basic documentation about declarative style parameters but it does not go into detail about postReceive actions.

The postReceive property can be one of the predefined actions like ‘rootProperty’. You can see an overview of available actions here and their implementations here. An alternative is to define your own postReceive function, you can see an example here and here.