I have two data types:

Email - it stores email information such as sender name, time, the screenshot of email, etc.

Email HTML- HTML body of email (This also has a field which is associated with email data type)

We have set up a webhook, whenever the webhook receives a new email it creates a new email and HTML entry in the respective database.

We also have an HTML to PNG API configuration so that we can send HTML content to an external service and recover PNG to store screenshots of emails.

Here’s what I want.

Whenever a new email HTML is created, I want to automatically trigger the HTML to PNG API to create a screenshot and store the image in the associated email screenshot field.

Note - I don’t want to add the HTML to PNG APi trigger in the same workflow that is creating the new HTML every time as it increases the workflow completion time and email webhook fails (on the external email provider side) due to their limit of 3 seconds to mark success/failed event.

Please help with this.

I suggest you create a database trigger in the backend workflow.
Whenever an email HTML is created it will trigger. Just use the condition “Thing before change is empty” as explain in the Bubble doc.
Then you can call the HTML to PNG API in this workflow.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.