Create Entity in Relation colummn with a Rule

I’m struggling to understand how rules and relations work. I can not manage to create a rule that creates or updates a relation in an entity(new row created)
I have a rule that creates a new row in a Project DB, when a new row is created in Notion DB. But it does not let me add the client to the Client DB, or the Company to the Company DB…

Screenshot 2025-07-10 at 11.26.18

Please share the full screenshot of your automation.
Are you trying to update a select field? This can’t be done by using a formula that results in a text string.

I tried with both…This is something I’m trying to understand.Some relation I can change and some not…does that mean I have to have 2 different columns of relations to be able to work?

I’m not sure what you are trying to achieve. Let’s check.

It looks like you have two similar fields (Client DB and Clients DB). The first is a multi select field, the second is a relation field, right?

You want the automation to create a Project from a Notion entity, and it looks like your Notion DB has a field called Client Name (which is a text field).

If you want to create a Project that is linked to a Client (via the Clients DB field) based on the text string in the Notion entity, then you will need to use a query to find the right Client to link.

So you will want to use a formula something like this:

Clients.Filter(Name = [Step 1 Notion DB].[Client Name]).Sort().First()

(this assumes that a Project links to a single Client)

It works by taking the Clients database, and filtering to find any entities where the Name matched the Client Name from the Notion entity that triggered the rule.
Theoretically, there could be more than one, so using .Sort().First() will take the first one (in no particular order).

I hope this makes sense and helps.

However, you might want to look in to auto-linking relations.
You could add an auto-link relation between the Notion DB and the Clients DB, where you match on the Client’s name.
Then, you can either use this field value directly in the automation (no need for a query formula) or even just use a lookup on the Project db to get the Client that is linked to the Notion entity it was spawned from.
Just a thought …

Does not work… I will try to check the video but I think I already have the auto-linked relation, but it does not work.

Maybe I need to create first the client on the Client Db first? Which brings me to this question, if I use update DB automation, will it create one if It’s not there? Thanks for taking the time to help me, I’m trying to explain how this work..I’m trying to switch from Coda, and in coda relation are a bit different…

Right.

You can’t use an automation action to create a Project and within the action that creates the Project also create a new Client to be linked to that Project.

If your Notion entity has the value ‘ACME Ltd’ for the Client Name, you can create a new Project, but you won’t be able to set the Client for that Project if there doesn’t already exist an ‘ACME Ltd’ Client entity.

And when you have an auto-linking rule setup, it doesn’t create new entities - it will only link existing entities that match the criteria.

Then I always have to create an Entity, right? But, what happens if it’s already there? Will create a duplicate?

By the way, why I can not create but only update in the Clients DB?

What you could do is break it into two automations:

  • the first one creates the Project and links it to a Client if the relevant client exists
  • then, you can have a second automation (which triggers on Project creation, and with a filter of Client field is empty) which creates a new linked Client, based on the Client Name from the Notion entity which spawned the Project.

Then I will have to do the same, for the Client’s Company as well, if it’s not found?
Is not this a bit complicated, or I’m getting old? :sweat_smile:

I am wondering about the process here. Is the Notion db an imported/synced database? Did you have Client and Company dbs in Notion? If so, why not import/sync them as Fibery dbs.

If not, why don’t you make the entities for all possible Clients/Companies, in a batch ahead of time (manually or by asking AI) based on the text fields where their names are stored?

I think I have managed.Thanks!
No, I don’t have other databases in Notion,just this one. I’m using notion, together with “notion Saver” to be able to entry data from Chrome browser. It just gets information about the project, client, price, etc…then I want to bring the information into Fibery (Now I’m doing this with Coda) Hopefully I manage to recreate all my works flows from Coda into Fibery, so I can totally migrate one day… :slight_smile:

It may not help you for this specific use case, but worth mentioning that Fibery has a web clipper browser extensions.

I will take a look, it would be great to avoid steps. Thanks!