Hi
I’m new to Pipedream, so please bare with obvious questions.
I am trying to raise Google calendar events when a Notion calendar event is raised. I can raise the event but I can not transfer the Title of the event. I am trying to use
To transfer the title of a Notion calendar event to a Google Calendar event, you’ll need to ensure that you are accessing the correct path to the title property in the Notion event data. The error “undefined” suggests that the path you’re using might not be correct or that the data is not available at the time the workflow runs.
Here’s a step-by-step guide to help you troubleshoot and fix the issue:
Inspect the Notion Event Data: First, you need to examine the structure of the event data coming from Notion. You can do this by logging the entire steps.trigger.event object to see its structure:
console.log(steps.trigger.event);
Add this line in a code step after the trigger to see the full event data in the logs.
Find the Correct Path: Look through the logged data to find the exact path to the title. The path you provided (properties.Title.caption[0].plain_text) might be incorrect or incomplete. Make sure you’re accessing the right property.
Update the Path: Once you have identified the correct path, update your code to use it. For example, if the correct path is properties.Title.title[0].plain_text, you should use:
const title = steps.trigger.event.properties.Title.title[0].plain_text;
Use the Correct Path in Google Calendar Action: When creating the Google Calendar event, use the updated path to set the title:
{
summary: title, // Use the variable that holds the correct title
// other event details
}
Test the Workflow: After making these changes, test your workflow again to see if the title is correctly transferred to the Google Calendar event.
If you continue to experience issues, please ensure that the Notion event data is structured as expected and that the title property is available at the time the workflow runs. If you need further assistance, you can visit Pipedream Support for more support options.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double-check my answers and code! Learn how to build your own.