T
Twenty4mo ago
tienhm

Sync between workspaces?

Hi everybody, I'm so new with Twenty. Due to the lack of permission and role define now, I have to separate peoples to workspaces. But some data must be shared! Is there a way to sync data between two workspaces? Like one table is created or updated in workspace 1, and another table in workspace 2 will be synced.
9 Replies
Guillaume
Guillaume4mo ago
You ça use workflows and webhooks to do such a thing We separate the data between workspaces for security concerns, so workflow is the only way to achieve what you are asking
tienhm
tienhmOP4mo ago
I can't find my custom field (mappingId) to workflows code to sync to another workspace! Do I need run any update in backend, or Is workflow not working with custom fields? @Guillaume
No description
Guillaume
Guillaume4mo ago
Not sure about that. Maybe @thomast can help with that
tienhm
tienhmOP4mo ago
Let me update about the situation. In update API, we need recordId of thr destination table, so I stored the mappingId as Custom field (Text). But in Code Serverless Function (in workflow), I can't find it. Is there any cache or something need to run in the background?
tienhm
tienhmOP4mo ago
The config of custom filed look like this
No description
Prastoin
Prastoin4mo ago
Hey @thomast could you please have a look to the mappingId field not found issue when crafting a workflow when you have some free time 🙏 ? Hey@tienhm, you might wanna use a field type id instead of a text here 🤔 I'm unsure to understand if you've configured the mappingIds in both of your workspaces ( you need to )
tienhm
tienhmOP4mo ago
I remove workflow and recreate and it's worked! Not sure how, but it's OK now. @Prastoin Thank you so much, I will change it to ID to avoid duplicate
Prastoin
Prastoin4mo ago
Might have been either a browser cache or redis cache issue 🤔 if this re-occur please feel free to reach out No worries ! Happy to hear you found your way through ! Enjoy coding
thomast
thomast4mo ago
Hi @tienhm, could you please try to delete and recreate your Record is Updated step? We are not keeping output schema of each step up to date. If you create the step, then created your new field mappingId, you need to receate the step so the schema is synced. Let me know if that works Also, I see that you are looking through Before Update to find your mappingId. I would rather use After Update

Did you find this page helpful?