Get All Node Parameters

Is it possible to get all node parameters without knowing their values or indexes?

I am aware of getNodeParameter(parameterName, index), but am looking for getNodeParameters()

Thanks!

Hi @ryanflomenco, would $input.params work for you? Like so:

This will simply return all parameters from a given node for each input item, without providing the index or the parameter name:

@MutedJam I believe input.params is the equivalent of the getInputData function, correct?

If I’m not mistaken that only shows input data coming from previous nodes and not data set in the node?

As an example:

const allNodeParameters = this.getInputData()
console.log(allNodeParameters[0])

logs

{ json: {}, pairedItem: { item: 0, input: undefined } }

even though I have param data populated in my node at execution time. Please let me know if I’m missing something.

Thanks!

I was able to solve for this like so:

const executeData = this.getExecuteData();
const params = executeData.node.parameters
2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.