Troubleshooting Pipedream Integration: Not Pulling Records from YouTube to Notion Database

— Why does this line keep throwing a “steps not defined” error?

const results = steps.get_youtube_videos.$return_value.items;

— How do I make a notion step use promises

can you clarify what you’re trying to do? Would love to help get you back on the right track.

Yes

  1. Trigger: Connect to Youtube using Webhook
  2. Pull array of videos and details via Youtube API.
  3. Using node.js codeblock suggested by Pi, set put the desired values in array for Notion to consume
  4. using Notion connection, post details to a notion DB

I have it all working, but I cannot get it to iterate through the array

Can you tell me more about the fundamental use case?

I am building a library of content assets for a client from a variety of sources (YouTube, Vimeo, WordPress)

These are all data sources they own so i have API access.

but we want it all in a Notion DB so, we can make it all available for keyword application and then search

goals:

  1. Have entire library searchable in one place.
  2. use as examples as new content is developed.
  3. Identify content to be updated over time.

would live to eventually push to Jira via API as well

that is about it

I have the YouTube and Vimeo connections working, but cannot iterate through the arrays they generate.

Got it, thanks. And so are you looking to sync this videos into Notion as each one is published or something like that? Or you want to do a one-time sync with everything that exists now?

I’m not totally clear on the part about looping through an array.

Issues

  1. Cannot iterate through array
  2. When that is sorted will need to iterate through pages to get the whole library

Not clear on the need?

Or problem?

What array are you iterating through?