T
Twenty3w ago
Lucas

How to create a new column in kanban, how to do upsert and conditional boolean in workflows

Hey Community, I’ve noticed some gaps in the documentation (including a few 404 errors) and was hoping to get some clarification on the following: How to create groups (columns) in the Kanban view How to perform an upsert to check if an object exists before creating or updating it How to handle conditional booleans in workflows (should this be done with code?) Thanks in advance for your help!
23 Replies
Prastoin
Prastoin3w ago
Hello @Lucas
How to create groups (columns) in the Kanban view
You need to create a new option to the enum field metadata ( MULTI_SELECT | SELECT ) one which the kanban view is based
Lucas
LucasOP3w ago
Can i edit the default objects?
Prastoin
Prastoin3w ago
How to perform an upsert to check if an object exists before creating or updating it
Unless I'm mistaken and unfortunately we don't have a findOne resolver for the moment So you will to get the whole object metadata items and search in them What's your need here exactly ?
How to handle conditional booleans in workflows (should this be done with code?)
You can enable the workflows filters in the LAB ( latest twenty version ) Without them you would have to create your own filtering serverless nodes
Lucas
LucasOP3w ago
on selfhosted or managed?
Prastoin
Prastoin3w ago
I’ve noticed some gaps in the documentation (including a few 404 errors) and was hoping to get some clarification on the following:
Please feel free to share outdated docs or playground examples Both
Lucas
LucasOP3w ago
It's to create leads/contacts eg... without having duplicates
Prastoin
Prastoin3w ago
The API won't let you create colliding object/fields within the same workspace It's guarded on name and identifiers It might be a redundant check to be done on your side, to double check.
Lucas
LucasOP3w ago
So I'm forced to use code if I want to create an object and fallback on update?
Prastoin
Prastoin3w ago
Are you talking about records or object metadata and field metadata definitions ? Records are on upsert Object and fields models aren't
Lucas
LucasOP3w ago
So if I create a record in an object it's equivalent to upsert? or update op
Prastoin
Prastoin3w ago
I'm sorry I'm not sure to understand the question
Prastoin
Prastoin3w ago
These are company's records rows
No description
Lucas
LucasOP3w ago
upsert = insert fallback on update
Prastoin
Prastoin3w ago
This the company data model definition
No description
Prastoin
Prastoin3w ago
I'm not understanding your need If you try updating a record that does not exist it gets created ( upsert ) Not the case for metadata model -> no upsert
Lucas
LucasOP3w ago
If i create a contact and don't want to have 10 contacts of the same person if I ingest many sources
Prastoin
Prastoin3w ago
It's then unrelated to metadata definition but to record collision
Lucas
LucasOP3w ago
sorry i don't have all the vocabulary of Twenty CRM
Prastoin
Prastoin3w ago
No worries all good Just making things clear for both of us 👍
Lucas
LucasOP3w ago
thanks so I can focus on update
Prastoin
Prastoin3w ago
You're welcome Will soon be introduce custom uniqueness constraint on field There's already some on standard fields such as emails and so on
Lucas
LucasOP3w ago
Wow I just checked, there is new stuff in Lab exactly the stuff I was looking for thanks
Prastoin
Prastoin3w ago
Cool ! feel free to reach out for feedback or some help regarding these features in any new help thread

Did you find this page helpful?