Dynamically insert ChannelId into Slack for reading channel history

I have a list of channels from slack, I am trying to pull the list of Id’s dynamically from the previous node.

Slack channel history has a dropdown in the menu, but I need to populate it based on channelId programmatically from the previous node. And it doesn’t like inserting the channelId as the parameter.

The ChannelId pulls the
“channel”: {
“id”: “C012AB3CD”}
and inserts it into the “Channel” in the screenshot.

Any help would be much appreciated!!

You should be able to do it with {{$node["name of the node"].json["channelId"]}}