Does anyone have an easy to use strategy to copy data from a Fibery Rich Text (Document) field to a Fibery (plain) Text field?
I’m thinking of a one off operation in my case, and too much data to copy-paste manually from the Rich Text (Document) fields one by one.
E.g. I had a use case where I 200 records, each with 4 Rich Text fields of data of simple text like “ABC”, that I wanted available as (plain) Text fields instead.
I tried these approaches:
- Copy paste from a table view Rich Text field into a new Text field - doesn’t work
- Copy field, then convert field type - not possible (AFAIK)
- A new field with a formula that converts the Text (like
ToText(TheRichText)
) - but ToText doesn’t work with a Document - Create a Report based on the data and copy-paste back to table - but Rich Text (Document) is not available in Reports
- Use an automation with simple commands - but found no simple commands are applicable to do this operation
There is always the API and the Automation Rule or Button -Script route, but I was looking for more straightforward solution.
I know you cannot convert between types in Fibery, but you can usually just create new fields and copy-paste in bulk - but that doesn’t apply for Rich Text fields, it seems.
I have run into this question how access data in Rich Text field in Fibery in many use cases, but this copy-paste into text or other fields in particular, I feel there should be some straightforward non-technical solution for.
Hence - do anyone have a good straightforward solution on how to easily transfer/copy-paste data from many Rich Text (Document) fields to (plain) Text fields?
Example (from Notion DB sync use case)
I ran into this issue at scale recently when I used the database integration feature for the first time in Fibery. I synced over data from 2 databases in Notion.
Activating the integration was a super smooth experience.
But I ran into the issue that the integration design had the Notion Database fields of “Text” synced to Fibery’s “Rich Text” (or Document) field, not Fibery’s (plain) Text field.
I.e. that this Notion database:
syncs into this Fibery database:
I kind of get why the integration does this - if the conversation would be to plain text, you could potentially lose information.
Probably though, most users will not have rich text in Notion Database Text field, by my experience, at least not that needs to be preserved in a one-way sync.
At the same time, as I synced ~200 records, 4 key Notion DB fields (order references, cost center references, account references, vendor references), I couldn’t really use the data in Fibery, because they were synced into Rich Text (Documents) fields in Fibery.
Side note
I will create a separate feature request to ask if database integration solution could
be enhanced so the customer using the integration can configure on Fibery’s end some simple data transformation on select problematic field types like incoming “rich text” content, so this hassle can be avoided. In the Notion use case specifically, the design might be changed perhaps, but generally, I feel there are some choices how one way data syncs should transform the data, that is best left to the user that installs the integration, that knows their data.
Edit: maybe next time, since I found a good workaround for my use case and want Fibery to fix other things first
Workaround to get Notion DB Text field into (plain) Text field in Fibery
For other Fibery users syncing DB data from Notion, here is a workaround I found useful:
- For each Text field in a Notion Database that you want to sync into Fibery as a (plain) Text field, add a corresponding Formula type field in Notion, that references that text field
- Using a formula that directly reference another field will just copy the visible content
- And Notion’s formula field will sync to (plain) Text field in Fibery!
- Of course, you have the overhead of adding such formula fields in Notion, and you’ll get the original Rich Text fields in Notion, but both Fibery and Notion has good support for hiding fields (although it might be confusing for other admins or your future self)
- Another benefit of this workaround is that it will work if you want to keep the Notion db integration active after the initial sync is complete, unlike manual copy-paste solutions
- If you had rich text and newlines in the original field you referenced with a formula, some quick tests I did seems to indicate line breaks are preserved and formatting stripped (which was OK in my use case)
I also noted a bug in the Notion integration - it doesn’t work if there is a period (.) in the Notion field name (and maybe other special characters) - workaround just rename the field. I’ll file bug report directly to Fibery via Intercom about that particular issue.
Edit: reported at 2022-11-05