# \#function

**URL:** https://community.n8n.io/tag/function/38.md

[Latest](https://community.n8n.io/latest.md) · [Categories](https://community.n8n.io/categories.md) · [Tags](https://community.n8n.io/tags.md)

---

## [Add Function Calling (Tools) support to the Hugging Face Inference Node](https://community.n8n.io/t/add-function-calling-tools-support-to-the-hugging-face-inference-node/203989)

<div class="topic-metadata">

**Author:** [@renatobarros](https://community.n8n.io/u/renatobarros)\
**Replies:** 0\
**Last updated:** [October 12, 2025, 3:42am UTC](https://community.n8n.io/t/add-function-calling-tools-support-to-the-hugging-face-inference-node/203989 "2025-10-12T03:42:26Z")

</div>

It would help if there was a node for: It would help if the existing Hugging Face Inference Model node was enhanced to support function calling (tools). This is critical for enabling the node to work seamlessly with the…

---

## [Passing variables to fromAI function?](https://community.n8n.io/t/passing-variables-to-fromai-function/124441)

<div class="topic-metadata">

**Author:** [@rubn](https://community.n8n.io/u/rubn)\
**Replies:** 1\
**Last updated:** [May 31, 2025, 5:59pm UTC](https://community.n8n.io/t/passing-variables-to-fromai-function/124441 "2025-05-31T17:59:12Z")

</div>

I’ve been trying to bypass the MCP client limitations of not accepting variables as tool inputs. My most recent attempt was to use a regular AI Agent with a stateful tool that takes a generic json as input. The tool stat…

---

## [How to merge all data from different notion pages in one single content?](https://community.n8n.io/t/how-to-merge-all-data-from-different-notion-pages-in-one-single-content/73962)

<div class="topic-metadata">

**Author:** [@Benoit\_Husson](https://community.n8n.io/u/Benoit_Husson)\
**Replies:** 4\
**Last updated:** [February 4, 2025, 5:59pm UTC](https://community.n8n.io/t/how-to-merge-all-data-from-different-notion-pages-in-one-single-content/73962 "2025-02-04T17:59:55Z")

</div>

Hi dear Community, (First time I use n8n :wink: ) In Notion, I have a “dummy” database of user interviews. My goal is to get all answers from all interviews and merge them into one single content and send it to OpenAI. …

---

## [Split comma-separated values and send to different rows in Google Sheets](https://community.n8n.io/t/split-comma-separated-values-and-send-to-different-rows-in-google-sheets/18435)

<div class="topic-metadata">

**Author:** [@Mike\_M](https://community.n8n.io/u/Mike_M)\
**Replies:** 7\
**Last updated:** [January 8, 2024, 12:30pm UTC](https://community.n8n.io/t/split-comma-separated-values-and-send-to-different-rows-in-google-sheets/18435 "2024-01-08T12:30:00Z")

</div>

Hi! I’m really enjoying building with n8n! I’m stuck in the following: I’m trying to split the string in the ‘text’ section of the JSON and send each comma-separated value to different rows in a Google Sheets document…

---

## [Need Help to access the nodejs in function node](https://community.n8n.io/t/need-help-to-access-the-nodejs-in-function-node/17694)

<div class="topic-metadata">

**Author:** [@msm](https://community.n8n.io/u/msm)\
**Replies:** 8\
**Last updated:** [December 2, 2023, 8:56am UTC](https://community.n8n.io/t/need-help-to-access-the-nodejs-in-function-node/17694 "2023-12-02T08:56:33Z")

</div>

Hello n8nians! I was trying to get the access of the nodeJS built in module in the function node, i was specifically trying to get the following one. const fs = require('fs') and the function node returns the error a…

---

## [\[ERROR: Can’t get data for expression\]](https://community.n8n.io/t/error-can-t-get-data-for-expression/33344)

<div class="topic-metadata">

**Author:** [@Linecker](https://community.n8n.io/u/Linecker)\
**Replies:** 1\
**Last updated:** [November 28, 2023, 10:11am UTC](https://community.n8n.io/t/error-can-t-get-data-for-expression/33344 "2023-11-28T10:11:07Z")

</div>

I can’t get any variable before the node code ERROR: Can’t get data for expression under ‘Body Parameters \> Parameter’ field To fetch the data from other nodes that this expression needs, more information is needed from …

---

## [How to get binary data from a previously processed node?](https://community.n8n.io/t/how-to-get-binary-data-from-a-previously-processed-node/14762)

<div class="topic-metadata">

**Author:** [@Ronald\_Lam](https://community.n8n.io/u/Ronald_Lam)\
**Replies:** 6\
**Last updated:** [August 23, 2023, 7:01pm UTC](https://community.n8n.io/t/how-to-get-binary-data-from-a-previously-processed-node/14762 "2023-08-23T19:01:48Z")

</div>

Hi everyone, I am currently getting used to the way n8n does things. The one issue I struggle the most is about binary data. The way I found from documentation is to use getBinaryData() to get binary data in function no…

---

## [answerInlineQuery in Telegram](https://community.n8n.io/t/answerinlinequery-in-telegram/13078)

<div class="topic-metadata">

**Author:** [@ruby09](https://community.n8n.io/u/ruby09)\
**Replies:** 4\
**Last updated:** [August 22, 2023, 5:42pm UTC](https://community.n8n.io/t/answerinlinequery-in-telegram/13078 "2023-08-22T17:42:40Z")

</div>

Hello, I have an error when trying to callback. Can @harshil1712 @mcnaveen help me. I cant figure out how to get the query id and what to put for the results column. error message Shown : ERROR: Bad request - please ch…

---

## [Help - Function node error](https://community.n8n.io/t/help-function-node-error/27871)

<div class="topic-metadata">

**Author:** [@PedroHenrique26](https://community.n8n.io/u/PedroHenrique26)\
**Replies:** 8\
**Last updated:** [July 14, 2023, 12:03am UTC](https://community.n8n.io/t/help-function-node-error/27871 "2023-07-14T00:03:18Z")

</div>

Good afternoon I had made a flow using an old version of N8N and now that I updated it is giving some conflict with the “Function” node I check in the spreadsheet if a certain user ID already exists and then I look for…

---

## [Unhelpful in forum: "A newer version of this node type is available......."](https://community.n8n.io/t/unhelpful-in-forum-a-newer-version-of-this-node-type-is-available/27349)

<div class="topic-metadata">

**Author:** [@fdavidg](https://community.n8n.io/u/fdavidg)\
**Replies:** 3\
**Last updated:** [July 10, 2023, 4:08pm UTC](https://community.n8n.io/t/unhelpful-in-forum-a-newer-version-of-this-node-type-is-available/27349 "2023-07-10T16:08:14Z")

</div>

So often when I am looking at previous questions/answers for information when I come across a workflow and try to look at the the node configuration, specifically " Upload CSV with HTTP Request" from Jan 22. When I try t…

---

## [Code node - Javascript snippet is not running anymore since worskpace update](https://community.n8n.io/t/code-node-javascript-snippet-is-not-running-anymore-since-worskpace-update/26774)

<div class="topic-metadata">

**Author:** [@Vincent\_Bonjean](https://community.n8n.io/u/Vincent_Bonjean)\
**Replies:** 12\
**Last updated:** [June 8, 2023, 9:09am UTC](https://community.n8n.io/t/code-node-javascript-snippet-is-not-running-anymore-since-worskpace-update/26774 "2023-06-08T09:09:40Z")

</div>

Describe the problem/error/question A javascript code is not running since last update. The code doesn’t look wrong on my side so I’m a bit lost. What is the error message (if any)? ERROR: Cannot read properties of null…

---

## [Filter Exisitng Entry Every 'X' number of Hours from HTTP Request](https://community.n8n.io/t/filter-exisitng-entry-every-x-number-of-hours-from-http-request/22398)

<div class="topic-metadata">

**Author:** [@KevinK](https://community.n8n.io/u/KevinK)\
**Replies:** 12\
**Last updated:** [May 6, 2023, 12:17pm UTC](https://community.n8n.io/t/filter-exisitng-entry-every-x-number-of-hours-from-http-request/22398 "2023-05-06T12:17:51Z")

</div>

Hey guys, So I have a client I’m helping send out Messages to Twilio Basically what I’m doing is I have a custom form that’s 24/7 collecting information on Google Sheets (Names & Phone Number) then using Google Sheets…

---

## [How to rename multiple binary's with its own filename and extension](https://community.n8n.io/t/how-to-rename-multiple-binarys-with-its-own-filename-and-extension/14373)

<div class="topic-metadata">

**Author:** [@UweG](https://community.n8n.io/u/UweG)\
**Replies:** 5\
**Last updated:** [March 6, 2023, 2:27pm UTC](https://community.n8n.io/t/how-to-rename-multiple-binarys-with-its-own-filename-and-extension/14373 "2023-03-06T14:27:19Z")

</div>

I try to rename multiple binary’s which i get with a sharelink. I try out this flow: How do i rename each binary with its own individual filename and extension?

---

## [Ability to drag inputs from left panel to the code in the Function node](https://community.n8n.io/t/ability-to-drag-inputs-from-left-panel-to-the-code-in-the-function-node/22246)

<div class="topic-metadata">

**Author:** [@thibaultmol](https://community.n8n.io/u/thibaultmol)\
**Replies:** 1\
**Last updated:** [January 25, 2023, 3:21pm UTC](https://community.n8n.io/t/ability-to-drag-inputs-from-left-panel-to-the-code-in-the-function-node/22246 "2023-01-25T15:21:54Z")

</div>

The idea is: Currently you can’t seem to drag inputs from a previous node (that are displayed in the left panel when editing a node) to a place in the code of a function node. EDIT: for those stumbling on this post, ass…

---

## [Help regex function!](https://community.n8n.io/t/help-regex-function/21987)

<div class="topic-metadata">

**Author:** [@oly-dev](https://community.n8n.io/u/oly-dev)\
**Replies:** 2\
**Last updated:** [January 21, 2023, 10:19am UTC](https://community.n8n.io/t/help-regex-function/21987 "2023-01-21T10:19:37Z")

</div>

Describe the issue/error/question Hi! im goingt crazy with what i thought was going to be aeasy thing. I have a string like this: \<https://cdn.shopify.com/s/files/1/0454/8182/0319/files/19795198-1\_1.jpg\>; rel="canonical…

---

## [Transform strin to json](https://community.n8n.io/t/transform-strin-to-json/21583)

<div class="topic-metadata">

**Author:** [@MPO](https://community.n8n.io/u/MPO)\
**Replies:** 8\
**Last updated:** [January 11, 2023, 7:18am UTC](https://community.n8n.io/t/transform-strin-to-json/21583 "2023-01-11T07:18:32Z")

</div>

Hello ! I need to transform this string (with carriage return) BEGIN:VCALENDAR VERSION:2.0 PRODID:-//example.fr //NONSGML My Product//FR BEGIN:VEVENT UID:Z2HOOON14VOH09RIACY3IL3C SUMMARY:Test API NextCloud LOCATION:Par…

---

## [Need assistance trimming off quotes at the 1st and last character of a given string](https://community.n8n.io/t/need-assistance-trimming-off-quotes-at-the-1st-and-last-character-of-a-given-string/21632)

<div class="topic-metadata">

**Author:** [@Betsworth22](https://community.n8n.io/u/Betsworth22)\
**Replies:** 2\
**Last updated:** [January 10, 2023, 3:07pm UTC](https://community.n8n.io/t/need-assistance-trimming-off-quotes-at-the-1st-and-last-character-of-a-given-string/21632 "2023-01-10T15:07:01Z")

</div>

I’ve got a string field that is an improperly formatted json object that has leading and ending double quotes. “” Example: (Dummy Data) “{“ranger”:{“squadwebsite”:“https://forsesthike.montana.com”,“userAgent”:“Mozilla/…

---

## [New function / code node - splitting array into multiple JSON items](https://community.n8n.io/t/new-function-code-node-splitting-array-into-multiple-json-items/21143)

<div class="topic-metadata">

**Author:** [@jonas](https://community.n8n.io/u/jonas)\
**Replies:** 1\
**Last updated:** [December 28, 2022, 10:58am UTC](https://community.n8n.io/t/new-function-code-node-splitting-array-into-multiple-json-items/21143 "2022-12-28T10:58:37Z")

</div>

Hey guys, There are many templates for splitting arrays into JSON items that no longer work with the new Function node: n8n.io - Workflow Automation What would be the easiest way to adjust the code? Thanks!

---

## [Variables defined in function node are not holding values on 0.198.2](https://community.n8n.io/t/variables-defined-in-function-node-are-not-holding-values-on-0-198-2/18870)

<div class="topic-metadata">

**Author:** [@Roney\_Dsilva](https://community.n8n.io/u/Roney_Dsilva)\
**Replies:** 20\
**Last updated:** [November 29, 2022, 8:47pm UTC](https://community.n8n.io/t/variables-defined-in-function-node-are-not-holding-values-on-0-198-2/18870 "2022-11-29T20:47:04Z")

</div>

Description of the issue/error/question variables defined in function node are not holding values on 0.198.2 What is the error message (if any)? variables defined in the function node are not holding values and are retu…

---

## [Code versus Function Node(s)](https://community.n8n.io/t/code-versus-function-node-s/19498)

<div class="topic-metadata">

**Author:** [@dickhoning](https://community.n8n.io/u/dickhoning)\
**Replies:** 2\
**Last updated:** [November 7, 2022, 8:55am UTC](https://community.n8n.io/t/code-versus-function-node-s/19498 "2022-11-07T08:55:35Z")

</div>

Hi there, Having been away from n8n for half a year, I decided to go through the Documentation again … just to make sure that I did not miss any of the new functions. When I tried out the code from this example … https…

---

## [RangeError: Maximum call stack size exceeded](https://community.n8n.io/t/rangeerror-maximum-call-stack-size-exceeded/19299)

<div class="topic-metadata">

**Author:** [@Robm](https://community.n8n.io/u/Robm)\
**Replies:** 3\
**Last updated:** [November 3, 2022, 11:31am UTC](https://community.n8n.io/t/rangeerror-maximum-call-stack-size-exceeded/19299 "2022-11-03T11:31:35Z")

</div>

What is the error message (if any)? RangeError: Maximum call stack size exceeded \[line 64\] Please share the workflow Share the output returned by the last node RangeError: Maximum call stack size exceeded at cleanup…

---

## [Meilisearch - async process handling](https://community.n8n.io/t/meilisearch-async-process-handling/19153)

<div class="topic-metadata">

**Author:** [@Thomas\_Pedot](https://community.n8n.io/u/Thomas_Pedot)\
**Replies:** 2\
**Last updated:** [November 1, 2022, 8:28am UTC](https://community.n8n.io/t/meilisearch-async-process-handling/19153 "2022-11-01T08:28:46Z")

</div>

Hello, I want to trigger meilisearch update Steps : 1- connect to the client 2- update documents with the json I am cannot figure out why ti doesnot trigger any thing on meilisearch server ? Is it because it is asy…

---

## [RangeError: Maximum call stack size exceeded in function node | n8n v0.199.0](https://community.n8n.io/t/rangeerror-maximum-call-stack-size-exceeded-in-function-node-n8n-v0-199-0/19137)

<div class="topic-metadata">

**Author:** [@Deshdeep](https://community.n8n.io/u/Deshdeep)\
**Replies:** 3\
**Last updated:** [October 28, 2022, 3:20pm UTC](https://community.n8n.io/t/rangeerror-maximum-call-stack-size-exceeded-in-function-node-n8n-v0-199-0/19137 "2022-10-28T15:20:35Z")

</div>

Describe the issue/error/question RangeError: Maximum call stack size exceeded I have basic function node with return statement for the next node. But it’s What is the error message (if any)? RangeError: Maximum ca…

---

## [Flow executes random node](https://community.n8n.io/t/flow-executes-random-node/18438)

<div class="topic-metadata">

**Author:** [@Nelson\_Paz\_y\_Mino](https://community.n8n.io/u/Nelson_Paz_y_Mino)\
**Replies:** 4\
**Last updated:** [October 11, 2022, 2:25am UTC](https://community.n8n.io/t/flow-executes-random-node/18438 "2022-10-11T02:25:11Z")

</div>

Describe the issue/error/question When I execute the flow everything goes fine until at some point it executes a random node, in this case the one named: Create JSON-items2. There is no conditions in the flow to execute …

---

## [Can't properly format request](https://community.n8n.io/t/cant-properly-format-request/18191)

<div class="topic-metadata">

**Author:** [@StocktonF](https://community.n8n.io/u/StocktonF)\
**Replies:** 8\
**Last updated:** [September 30, 2022, 7:29am UTC](https://community.n8n.io/t/cant-properly-format-request/18191 "2022-09-30T07:29:56Z")

</div>

Hey team, I’m using the Function node to build a properly formatted event hit according to Facebook’s documentation. However, the output is wrapped in an array… I need to return the object directly inside of that array…

---

## [Send 1 Email with multiple Files from ssh node](https://community.n8n.io/t/send-1-email-with-multiple-files-from-ssh-node/16702)

<div class="topic-metadata">

**Author:** [@rodrigoscdc](https://community.n8n.io/u/rodrigoscdc)\
**Replies:** 15\
**Last updated:** [September 26, 2022, 8:10am UTC](https://community.n8n.io/t/send-1-email-with-multiple-files-from-ssh-node/16702 "2022-09-26T08:10:18Z")

</div>

Describe the issue/error/question I’m trying to send by email 3 attachments from ssh node wich I download some files. Following other posts here in the community the end of my function node didn’t move forward my binary …

---

## [Read a file and multiplex with json](https://community.n8n.io/t/read-a-file-and-multiplex-with-json/17887)

<div class="topic-metadata">

**Author:** [@lublak](https://community.n8n.io/u/lublak)\
**Replies:** 6\
**Last updated:** [September 21, 2022, 2:16pm UTC](https://community.n8n.io/t/read-a-file-and-multiplex-with-json/17887 "2022-09-21T14:16:42Z")

</div>

Describe the issue/error/question Currenlty i try to send a email. I need json data (for text) and binary data (for attach). I tried to multiplex (Merge multiplex not works it all for binary data) with a function node: …

---

## [\[Merge node\] still runs when there is no input to it?](https://community.n8n.io/t/merge-node-still-runs-when-there-is-no-input-to-it/17710)

<div class="topic-metadata">

**Author:** [@Josh-Ghazi](https://community.n8n.io/u/Josh-Ghazi)\
**Replies:** 12\
**Last updated:** [September 15, 2022, 7:07am UTC](https://community.n8n.io/t/merge-node-still-runs-when-there-is-no-input-to-it/17710 "2022-09-15T07:07:10Z")

</div>

Describe the issue/error/question The behavior of my function node is strange, basically i have 2 paths which product data will be sent, 1 for brand A and brand B, on brand A’s path i have a function node to reformat the…

---

## [Merge loops function bugs](https://community.n8n.io/t/merge-loops-function-bugs/17471)

<div class="topic-metadata">

**Author:** [@TheG](https://community.n8n.io/u/TheG)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 2:15pm UTC](https://community.n8n.io/t/merge-loops-function-bugs/17471 "2022-09-08T14:15:45Z")

</div>

Hello community, I have an issue with the merge loops function, it shouls merge the 6 items. Any help ?

---

## [Adding number to left of array](https://community.n8n.io/t/adding-number-to-left-of-array/17417)

<div class="topic-metadata">

**Author:** [@Benjamin123](https://community.n8n.io/u/Benjamin123)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 3:54pm UTC](https://community.n8n.io/t/adding-number-to-left-of-array/17417 "2022-09-07T15:54:22Z")

</div>

I have an array and i would like to change the left side of array by adding numbers to it. i would like to add a number to the left side of array as shown in red. May i know how can i do it?

[Next page](https://community.n8n.io/tag/function/38.md?match_all_tags=true&page=1&tags%5B%5D=function)
