Hey there @JMacasero - welcome to the Community. Here’s some info as I understand it in HubSpot (I’m not a developer, but I did a little searchign and found this).
Yes, it is possible to create a custom CRM card with a button that copies subject and email body details and pastes them into the HubSpot email pop-up. Here’s how you can accomplish this:
- Create a custom CRM card using HubSpot’s UI extensions. This allows you to build flexible custom cards that integrate seamlessly with HubSpot’s standard features.
- Use serverless functions to handle the API calls and data processing. These functions can fetch the necessary email details from your application.
- Add a button to your custom card using HubSpot’s library of standard card components. This button will trigger the action to copy the email details.
- When the button is clicked, use the HubSpot UI Extensions SDK to interact with the HubSpot interface. Specifically, you’ll want to use the
hubspot.emailEditormethods. - Here’s a basic example of how the button click handler might look:
- The
hubspot.emailEditor.open()method will open the email pop-up with the pre-filled subject and body. The user can then review and send the email.
This approach allows you to create a seamless workflow for your users, enabling them to quickly prepare emails based on data from your application. Remember to handle any potential errors and provide appropriate feedback to the user.
Keep in mind that while this solution is possible, it requires careful implementation to ensure a smooth user experience. You’ll need to consider factors like error handling, performance, and user interface design to make sure the feature works reliably and intuitively within the HubSpot environment.
I’d also look in the Developers forums for additional help if you need it.
