actualNoteContentPart: ## Example 4 - Adding a task containing an inline tag using a custom Javascript step
  For this example, we will add an inline tag again, this time using a custom Javascript step. For this, we will need to create steps to:
  Get the UUIDs of the destination note as well as the inline-tag note;
  Make a POST request to the API.
  For the first code step, we will add the following code:
  ```
  import { axios } from "@pipedream/platform"export default defineComponent({  props: {    amplenote: {      type: "app",      app: "amplenote",    }  },  async run({steps, $}) {    const data = await axios($, {      method: 'GET',      url: `https://api.amplenote.com/v4/notes`,      headers: {        Authorization: `Bearer ${this.amplenote.$auth.oauth_access_token}`,      },    })     //Get the drive inbox and the inline tag to tag the note with    const note = filterNote(data, 'Drive Inbox');    const inlineTag = filterNote(data, '@home');     $.export('Destination note UUID', note.uuid);    $.export('inline tag UUID', inlineTag);  },}) function filterNote(data, title) {  const [result] = data.notes.filter(note => {    if (note.name.includes(title)) {      console.log(`Note ${note.name} found`);      console.log(note);      return note;    }  })  return result;}
  ```
  
  Here, we hardcoded the name of the notes. However, changing the code to allow you to [pass props to the code step](https://pipedream.com/docs/code/nodejs/#passing-props-to-code-steps)  might prove useful if you want to change in the future.
  
  For the next code step, we will get the two notes and add the task inside the home note, while also keeping an inline link to another note in the task title. This can be achieved with the following code:
  ```
  import { axios } from "@pipedream/platform"export default defineComponent({  props: {    amplenote: {      type: "app",      app: "amplenote",    }  },  async run({steps, $}) {     //Drive inbox and inline tag notes from the last step    const driveInbox = steps.get_task_with_inline_tag["Destination note UUID"];    const inlineTag = steps.get_task_with_inline_tag["inline tag UUID"];     //Object to pass on the POST request       const task = {      type : "INSERT_NODES",      nodes : [        {          type: 'check_list_item',          content: [            {              type: 'paragraph',              content: [                {                  type: 'text',                  text: 'Remember to check the drive Inbox '                },                {                  type: 'link',                  attrs: {                    href: `https://www.amplenote.com/notes/${inlineTag.uuid}`                  },                  content: [                    {                      type: 'text',                      text: inlineTag.name                    }                  ]                }              ]            }          ]        }      ]    }     //POST request    return await axios($, {      method: 'POST',      url: `https://api.amplenote.com/v4/notes/${driveInbox}/actions`,      data: task,      actions: 'INSERT_NODES',      headers: {        Authorization: `Bearer ${this.amplenote.$auth.oauth_access_token}`,      },    })  },})
  ```
  
  After the testing, you should see the results in Amplenote with a task called Remember to check the drive Inbox @home, where @home is a backlink to another note.
processedNoteContent: ---
  title: Connect Amplenote to other apps using Siri Shor...
  headers: ## Example 4 - Adding a task containing an inline tag using a...
  ---
  Example 4 - Adding a task containing an inline tag using a custom Javascript step
  For this example, we will add an inline tag again, this time using a custom Javascript step. For this, we will need to create steps to:
  Get the UUIDs of the destination note as well as the inline-tag note;
  Make a POST request to the API.
  For the first code step, we will add the following code: import { axios } from "@pipedream/platform"export default defineComponent({  props: {    amplenote: {      type: "app",      app: "amplenote",    }  },  async run({steps, $}) {    const data = await axios($, {      method: 'GET',      url: `https://api.amplenote.com/v4/notes`,      headers: {        Authorization: `Bearer ${this.amplenote.$auth.oauth_access_token}`,      },    })     //Get the drive inbox and the inline tag to tag the note with    const note = filterNote(data, 'Drive Inbox');    const inlineTag = filterNote(data, '@home');     $.export('Destination note UUID', note.uuid);    $.export('inline tag UUID', inlineTag);  },}) function filterNote(data, title) {  const [result] = data.notes.filter(note => {    if (note.name.includes(title)) {      console.log(`Note ${note.name} found`);      console.log(note);      return note;    }  })  return result;}
  Here, we hardcoded the name of the notes. However, changing the code to allow you to [pass props to the code step](https://pipedream.com)`
    might prove useful if you want to change in the future. For the next code step, we will get the two notes and add the task inside the home note, while also keeping an inline link to another note in the task title. This can be achieved with the following code: import { axios } from "@pipedream/platform"export default defineComponent({  props: {    amplenote: {      type: "app",      app: "amplenote",    }  },  async run({steps, $}) {     //Drive inbox and inline tag notes from the last step    const driveInbox = steps.get_task_with_inline_tag["Destination note UUID"];    const inlineTag = steps.get_task_with_inline_tag["inline tag UUID"];     //Object to pass on the POST request       const task = {      type : "INSERT_NODES",      nodes : [        {          type: 'check_list_item',          content: [            {              type: 'paragraph',              content: [                {                  type: 'text',                  text: 'Remember to check the drive Inbox '                },                {                  type: 'link',                  attrs: {                    href: `https://www.amplenote.com/notes/${inlineTag.uuid}`                  },                  content: [                    {                      type: 'text',                      text: inlineTag.name                    }                  ]                }              ]            }          ]        }      ]    }     //POST request    return await axios($, {      method: 'POST',      url: `https://api.amplenote.com/v4/notes/${driveInbox}/actions`,      data: task,      actions: 'INSERT_NODES',      headers: {        Authorization: `Bearer ${this.amplenote.$auth.oauth_access_token}`,      },    })  },})
  After the testing, you should see the results in Amplenote with a task called Remember to check the drive Inbox @home, where @home is a backlink to another note.
noteTitle: Connect Amplenote to other apps using Siri Shortcuts, IFTTT or Pipedream (custom API integrations & automations)