Convert Rich Text to HTML in Automation

Hi,

We want to write our marketing emails in Fibery and then push them out through our branded email templates in Postmark (like Mailchimp) when pressing a button.

For this, we need to convert the Rich Text field into HTML, which then can be sent to the mailer together with the recipients when the user clicks Publish.

  • Is there a way to make the Rich Text to HTML conversion via the Javascript Action?
  • Or is there a way to read the Rich Text field as HTML?

Any pointers are much appreciated. Thanks!

1 Like

I know that you can query the content of a rich-text field as markdown via the API, maybe you can also specify the format “html”. I will have a look and report back. If it is not possible I can provide an API endpoint that offers the functionality „rich-text to html“ :slight_smile:

Update: Looks like this is supported, the format “html” is included in the Fibery API Docs:

curl -X GET https://YOUR_ACCOUNT.fibery.io/api/documents/b33a25d1-99ba-11e9-8c59-09d0cb6f3aeb?format=html \
     -H 'Authorization: Token YOUR_TOKEN' \

The query parameter format=html should do the trick.

1 Like