# Convert & Delete/Replace Entity preserving references

**URL:** <https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530>\
**Category:** Ideas & Features\
**Tags:** search, rich-text\
**Created:** [February 11, 2022, 5:00am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530 "2022-02-11T05:00:06Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![cannibalflea](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/cannibalflea/32/318_2.png) [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Post date:** [February 11, 2022, 5:00am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/1 "2022-02-11T05:00:06Z")

</div>

Entity conversion from one type to another is [already implemented](https://community.fibery.io/t/done-convert-entity-to-another-type/528) and works really well. The default behaviour is to create a new entity of the new type and copy content fields of the same name and type from the existing entity to the new entity.

However, one of the things that does not transfer over are references/back-links. This makes sense when you are copying/duplicating an entity, but in some cases, the intent is to actually convert an entity from one type to another and replace/delete the old one (i.e. a true conversion rather than creating new and copy content). In this case the desired behaviour is to have all the back-links pointing to the new entity.

This is not a big deal if you have a few entities and only a few backlinks. But it can quickly become a nightmare if you are converting large sets of data. So I am proposing extending the convert function to provide this possibility.

I think this was discussed as part of the [[APPROVED] Replace All References](https://community.fibery.io/t/approved-replace-all-references-or-convert-to-type/982), but that request seemed to focus on general ability replace all references to a certain entity with a new reference (see also [Search & Replace](https://community.fibery.io/t/search-replace/1792)). If they are one and the same, I will combine and delete this.

---

<div class="post-metadata">

**Author:** ![Polina\_Zenevich](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/polina_zenevich/32/480_2.png) [@Polina\_Zenevich](https://community.fibery.io/u/Polina_Zenevich)\
**Post date:** [February 12, 2022, 12:11pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/2 "2022-02-12T12:11:40Z")

</div>

Hi!  
That’s the real problem, we face as well  
Noted your feedback, have the feature-solution in our backlog 💖  
Will be back, once it’s done

Btw, if anyone else is struggling here too - please, leave your comments here, so we could better understand how the popular (painful) the problem is 💪

---

<div class="post-metadata">

**Author:** ![Mikkling](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@Mikkling](https://community.fibery.io/u/Mikkling)\
**Post date:** [February 12, 2022, 3:24pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/3 "2022-02-12T15:24:58Z")

</div>

I tend to do a lot of converting-to-type-then-deleting as i test, tweak, and scrap Spaces and Entities all the time, and it would be nice if references could be transferred.

---

<div class="post-metadata">

**Author:** ![Yuri\_BC](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/yuri_bc/32/8803_2.png) [@Yuri\_BC](https://community.fibery.io/u/Yuri_BC)\
**Post date:** [August 16, 2023, 9:04am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/4 "2023-08-16T09:04:35Z")

</div>

We need to convert the same entity to a different entity type a lot, and never actually need to copying into another entity type that now happens.  
I assume the copying of content into a new entity of another type, as happens now, may be a security measure to prevent loss of data or relations, but I did not use that feature once.  
Essentially, the need is to clone one entity into another database, include all relations and all references as much as possilbe as far as fields are corresponding, and delete or archive the old entity.

It will likely need a step in between in which users can match fields so that relations and references are not lost if the databased don’t contain the same type of fields.

---

<div class="post-metadata">

**Author:** ![B\_Sp](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@B\_Sp](https://community.fibery.io/u/B_Sp)\
**Post date:** [February 24, 2025, 6:46am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/5 "2025-02-24T06:46:12Z")

</div>

I would like to add a hearty vote for this feature as well. I also took the liberty to edit the title of this with the addition of “preserve references” hopefully that is OK @cannibalflea

My team has been in Fibery a while, since late 2019, and we have a lot of db hierarchy structures that are evolving, and could use some edit. This could be solved by [Polymorphic Relations](https://community.fibery.io/t/polymorphic-relations-when-creating-relation-ability-to-have-many-types-from-which-to-choose-and-not-just-one-type/425) but I know that is some time away. We track a lot of static things, like products, service providers, equipment, etc. and some of the structures of these things need edit after 4 + years - we need another level in our hierarchy for equipment, a sub-product is now a product, or vice versa, etc. This ideally would lead to moving these older entities, with tons of references and history, into new structures. In more free-form tools like Notion or Tana I can just move those out and basically “retag” them into new DB’s with no issue. The entity stays the same and I don’t need to “convert” it to a new Type. There might be some issues with field mapping but there are simple ways those tools solve that.

However right now in Fibery the conversion feature only maintains comments as far as I can tell. **very importantly all references will be lost**. This means we are sitting with a lot of key entities that are core to our business - like products, etc., that are stuck in the wrong structure and we can’t move them at the risk of losing years of history.

I also wanted to repost here some other suggestions I had for more involved process in converting entities. Again I think with the degree of inflexibility within Fibery because entities are stuck in DB’s, which I would call the more “atomic” level in Fibery, vs. say another tool like Notion where the entity is the more atomic level, and DB’s are formed more loosely to essentially group entities, but the entity (or page, issue, node etc. - however the other apps refer to them) are the core base-level piece of data.

> [@\[APPROVED\] Replace All References (or convert to type?)](https://community.fibery.io/t/approved-replace-all-references-or-convert-to-type/982/8):
>
> I agree with this and you are talking about some more advanced ways to relate two Entities that I would really advocate for. There are numerous discussions in the community around aspects of this, sorry I don’t have time to find the references, but off the top of my head:
> 
> - Converting an Entity into an Entity within another Type, with full mapping options, and other options like “maintain references” and “copy comments” and other advanced copying
> - Linking An entity to a newly created entity that would copy over much of the original entity’s data, but be in another Type
> - Your request to merge two related entities into one
> - Full tracking of the history trail of the connection being made between the two Entities: in the new one, info that it originated with the previous one; auto-write to comments about the “conversion” from the originating entity, etc.
> 
> I would have great use of this, and I advocate for dev time to be spend to build out sophisticated capability within Fibery to move Entities in various ways between Types, and to merge them if need be. I think this is going to be essential down the road due to the flexibility of Fibery and constant need to tweak set-ups and teams’ needs evolve.

Thanks!

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [February 24, 2025, 7:02am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/6 "2025-02-24T07:02:28Z")

</div>

Just adding a link here for anyone who didn’t find this related topic:

> [@Cloning an entity and re-mapping where it is mentioned](https://community.fibery.io/t/cloning-an-entity-and-re-mapping-where-it-is-mentioned/6578):
>
> Sometimes, you might want to convert an entity of one type into an entity of another type. Fibery does have native support for such a conversion [image] but any other entities in your workspace that mention the original item, will continue to point to the original and not the new clone. To solve this, I have created a script which will re-map all the #mentions in entities so that they point to the newly created one. The script is designed to work as the second action in an automation, where…

---

<div class="post-metadata">

**Author:** ![B\_Sp](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@B\_Sp](https://community.fibery.io/u/B_Sp)\
**Post date:** [February 26, 2025, 4:11am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/7 "2025-02-26T04:11:13Z")

</div>

Yes I’ve seen that. I am hoping we can get this natively, it’s a lot of work for a non-coder to try to apply your solution.

I guess you could even talk about this functionality as simply “moving” an entity from one db to another. It’s a common feature of a lot of similar tools like Fibery. The entirety of the entity would be preserved, it would just move into the new DB with the requisite mapping as well.

Either way, I am really hoping we can simply get this feature soon, would really help with dealing with structures that initially seemed correct, but now need adjusting.

---

<div class="post-metadata">

**Author:** ![Wilco\_Boode](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/wilco_boode/32/9985_2.png) [@Wilco\_Boode](https://community.fibery.io/u/Wilco_Boode)\
**Post date:** [September 24, 2025, 10:07am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/8 "2025-09-24T10:07:32Z")

</div>

Im running into a similar issue.

It would be great if the convertor can automatically detect same-database relationships in the old and new database, and re-link / transfer entity relationships that way.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 24, 2025, 11:56am UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/9 "2025-09-24T11:56:32Z")

</div>

> [@Wilco\_Boode](#):
>
> It would be great if the convertor can automatically detect same-database relationships in the old and new database, and re-link / transfer entity relationships that way.

Are you talking about [relations](https://the.fibery.io/@public/User_Guide/Guide/Fibery-Glossary-403/anchor=relation--7c419e82-2278-43b6-8afc-5631c52dc782) or [references](https://the.fibery.io/@public/User_Guide/Guide/Fibery-Glossary-403/anchor=reference--ce378275-dcca-459f-8834-b78bf0e792e8) (which I think is the original topic of this thread)

---

<div class="post-metadata">

**Author:** ![Wilco\_Boode](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/wilco_boode/32/9985_2.png) [@Wilco\_Boode](https://community.fibery.io/u/Wilco_Boode)\
**Post date:** [September 24, 2025, 12:14pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/10 "2025-09-24T12:14:42Z")

</div>

Ah, I was talking about relations

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 24, 2025, 12:26pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/11 "2025-09-24T12:26:06Z")

</div>

For relations to the same type, with the same name and cardinality, the links should be maintained during conversion.

---

<div class="post-metadata">

**Author:** ![Wilco\_Boode](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/wilco_boode/32/9985_2.png) [@Wilco\_Boode](https://community.fibery.io/u/Wilco_Boode)\
**Post date:** [September 24, 2025, 12:32pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/12 "2025-09-24T12:32:44Z")

</div>

Then that might be a bug (or different from how I used it)

So i had 2 databases

Database 1 Variables:

1. Name (text)
2. Content (text)
3. Parent (one / DB 1)
4. Children (many / DB 1)
5. var\_x
6. var\_y

Database 2 Variables:

1. Name (text)
2. Content (text)
3. Parent (one / DB 2 )
4. Children (many / DB 2 )
5. var\_a
6. var\_b
7. var\_c
8. var\_d

When I pressed convert from DB1 to DB2 the content and name were ok, but the parent and children were not set. I would have expected these to remain, but in the new structure

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 24, 2025, 2:46pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/13 "2025-09-24T14:46:27Z")

</div>

Imagine you have the following items in Database 1:

`- Entity 1`  
`-- Entity 1.1`  
`-- Entity 1.2`  
`--- Entity 1.2.1`  
`--- Entity 1.2.2`

If I choose to ‘convert’ `Entity 1.2` from db 1 to db 2 are you expecting that it will automatically also convert `Entity 1`, `Entity 1.2.1` and `Entity 1.2.2` as well?  
What about `Entity 1.1` ?

It is unlikely that the simple ‘convert’ function (which basically operates on a single entity) will ever cover a complex case with self-relations.

I think what you might be looking for is something like a cross-database ‘[deep copy](https://community.fibery.io/t/intra-space-deep-copy/6079)’, followed by deletion of the original tree.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [September 24, 2025, 3:47pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/14 "2025-09-24T15:47:09Z")

</div>

I’ve updated my earlier post for clarity:

> [@Chr1sG](#):
>
> For relations to the same type, with the same name and cardinality, the links should be maintained during conversion.

In your example, the field called Parent is a relation to DB1 in the source db, and a relation to DB2 in the destination db, so convert will ignore it.

---

<div class="post-metadata">

**Author:** ![Wilco\_Boode](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/wilco_boode/32/9985_2.png) [@Wilco\_Boode](https://community.fibery.io/u/Wilco_Boode)\
**Post date:** [September 24, 2025, 4:48pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/15 "2025-09-24T16:48:24Z")

</div>

I encountered this when I choose to mass-convert a whole group of items from DB1 to DB2. I did not expect it to auto-convert connected once that I did not select (that sounds like a massive rabbit hole)

Since the structure is the same in both databases, I expected it to also maintain the relations as those are already defined.

I see the issue with my assumption, and now understand that it did not belong in this thread, the deep-copy is closer to what I intended, but I get the issues now that I read the conversation over there.

---

<div class="post-metadata">

**Author:** ![mdubakov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/mdubakov/32/10_2.png) [@mdubakov](https://community.fibery.io/u/mdubakov)\
**Post date:** [March 5, 2026, 1:24pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/16 "2026-03-05T13:24:49Z")

</div>

> [@Mikkling](#):
>
> I tend to do a lot of converting-to-type-then-deleting as i test, tweak, and scrap Spaces and Entities all the time, and it would be nice if references could be transferred.

now it works

> [@March 5, 2026 / see\_no\_evil\_monkey Hide Entity Views with rules, Specify which Entity View to open by default for a user, Validation rules on Create](https://community.fibery.io/t/march-5-2026-hide-entity-views-with-rules-specify-which-entity-view-to-open-by-default-for-a-user-validation-rules-on-create/10491):
>
> see_no_evil_monkey Hide Entity Views based on rules You can now hide specific Entity Views based on rules. This allows you to control which views are visible depending on logged user fields values or entity fields values. To enable Hide Entity View rules, click Views on entity view → … near view name → Set up rules. In many setups, the same entity is used by different teams and across different workflow stages. Over time this leads to problems like: too many tabs on an entity, Views…

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [March 5, 2026, 4:58pm UTC](https://community.fibery.io/t/convert-delete-replace-entity-preserving-references/2530/17 "2026-03-05T16:58:31Z")

</div>


