How to Trigger an Action When a New Row is Added in Google Sheets and Use Track Name and Artist Name to Search TrackID in Spotify with Node.js?

I apologize for the oversight in my previous response. It seems I missed adding the props section to the component code, which includes the spotify app prop. Here’s the corrected code: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { spotify: { type: "app", app: "spotify", }, }, async run({ steps }) { const trackName = steps.trigger.event.newRow[1]; const artistName = steps.trigger.event.newRow[4]; const accessToken = this.spotify.$auth.oauth_access_token; const searchResponse = await axios(this, { method: "GET", url: "https://api.spotify.com/v1/search", headers: { "Authorization": `Bearer ${accessToken}`, }, params: { q: `track:${trackName} artist:${artistName}`, type: "track", }, }); if (searchResponse.tracks.items.length > 0) { const trackId = searchResponse.tracks.items[0].id; return { trackId }; } else { console.log("No track found for the given search query."); return { message: "No track found for the given search query." }; } }, }); This code now includes the props section with the spotify app prop, which should resolve the error you encountered.