How can I get the domain field in the previous set filed and insert it into the script code?

How can I get the domain [demo.domain.com] field in the previous set filed and insert it into the script code?
image

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @nhanh102

Can you share what the data value from the previous node contains?

You could also have a look at our built-in data transformation functions. Maybe you’re looking for extractDomain() ? :upside_down_face:

Thanks, I have mixed data to an array. this have ok

Hi @nhanh102

Sorry, I still cannot quite understand what your data flow is.
Could you share the entire workflow with some pinned data for illustration?

What is the desired output from the code node that you ultimately want?

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