n8n Advanced Course (3/8) - Pinning and editing output data
7:08

n8n Advanced Course (3/8) - Pinning and editing output data

n8n 20.06.2024 28 733 просмотров 440 лайков

Machine-readable: Markdown · JSON API · Site index

Поделиться Telegram VK Бот
Транскрипт Скачать .md
Анализ с AI
Описание видео
⌨ Sign up to n8n Cloud for a free trial: https://app.n8n.cloud/register Or: npm install -g n8n n8n start *Resources:* ❔ Need help or want to discuss the course? Join the conversation on our forum: https://community.n8n.io/t/advanced-course-3-8-pinning-and-editing-output-data/48598 🛠 Workflow templates: https://n8n.io/workflows/ 📚 Documentation: https://docs.n8n.io/

Оглавление (2 сегментов)

Segment 1 (00:00 - 05:00)

hey and welcome to video number three of the advanced course for NN in this video we'll be covering pinning data what it is why it's useful as well as the edit output data feature um both of these features will come in very handy when building your workflows so let's talk a little bit about pinning data um to speed up workflow building you want to rely as little as possible on external services to reduce execution time as much as possible every time you're re-executing something you're wasting time in comes in the pinning data feature you can pin the output of a node to make it readily accessible you can use this to avoid triggering external systems again like making API calls or to speed up execution while building you can pin data by clicking on the little pin icon that you can see to the top right of the output for example if a part of a workflow takes a few minutes to execute you can just pin the final node and continue building your workflow from there pinned data is only used for text test executions not production ones where the node is always executed you can see if a node has pinned data by the blue icon on the canvas you can keep uh one single set of pin data and when the workflow is activated it will just execute as normal for example here the pin data from the web hook node so we don't have to trigger it again when building the workflow which would require going into a tool testing the workflow sending the web hook and then building here we can just start building straight away another trick that we can use to facilitate workflow building is to use the edit output feature as its name suggests this feature lets you manually edit the output of a given node you can see this feature uh you can use this feature along with the pinned data feature to tweak execution data to see how it performs under specific edge cases for example by setting a field to null or passing a string instead of a number this can save you a ton of time when working with external systems avoiding you uh having to recreate these edge cases like making new API calls or using a code or um edit Fields node using the same example I can edit the output web hook uh node to test different sets of workflow trigger items again without having to re-trigger the web hook every single time you can also paste in uh data from a previous execution with the uh edit output feature you can do this by going into a previous execution navigating to the output pane of the node in question switching to Json View and then clicking the copy button um from here you can go back into your workflow that you're working on edit the output paste in the values and you will have um that data ready to work with in the workflow that you're building um this is very useful when debugging a workflow that might have failed and now you need to go in and well make a fix you can save a lot of time testing workflows by using the edit output node paired with a mock data tool that I like to use is mockaroo this will help you generate sets of randomized information and you can even uh set options for blank data allowing you to generate a realistic set of mock data items just be sure to select the Json format so you can copy paste it directly into n here I have a relatively simple workflow that listens to a web hook edits some Fields sends a message on slack and then if the ID is known updates it uh in a Google Sheets a pener updates so here when I'm testing the workflow I can send myself a test event and to avoid myself having to send myself this test event multiple times the first thing I can do is simply pin the data so here we can see we have the

Segment 2 (05:00 - 07:00)

blue check mark which means the data is pinned and if I refresh the page I can see that the information is still available here and I can still uh run the workflow as if I had the output item here now if I go into my past executions I have one here that returned an error so what I can do is come into to the web hook node copy the output from the Json view return back to the editor unpin the data paste in the data from the execution that had an error and save it and now I can keep building the workflow from that state figure out why the error was generated and uh Implement a fix for next time last part of uh editing and pinning data is to show uh how we can use for example mock data so here I'm going to start building a workflow and I need some different information um you know 10 examples of contacts so I'm going to use uh a tool called mockaroo and ask it to generate an ID first name email gender IP address um let's say that 10% of the time the email is empty and here I make sure to include the Json format so when I click generate data sorry when I click preview I have some data that I can then copy paste back into anyen and now I have this pin data that I can start working with without having to ask chat GPT or generate all of this manually so this is going to save you a ton of time in either building or testing workflows thanks for listening to the third video of the NN Advanced course where we covered pinning data and editing outputs in the next video we'll cover subw workflows and when to use them

Другие видео автора — n8n

Ctrl+V

Экстракт Знаний в Telegram

Экстракты и дистилляты из лучших YouTube-каналов — сразу после публикации.

Подписаться

Дайджест Экстрактов

Лучшие методички за неделю — каждый понедельник