#Is it possible to have next to the ID as well kind of People or Company Number?
1 messages · Page 1 of 1 (latest)
It's possible with workflow, you have to trigger it by creating a record and using code node, find max id of record, add 1 to it and update field of newly created record
Cool, I will try it. Thanks
Hi, another question. Why would I use the code node and not the http request not to get the entry with the highest number? I would sort by desc by this fields and limit to 1
That's one of few ways to solve your problem, in the end it's up to you how you solve it
that's clear, I am only interested (want to learn) how you would do it with javascript code. Would you do there a call to the backend? or is there kind of javascript method within Twenty which I could use?
Straight up call to API as there are no native methods exposed
Hi, is there any documentation how the workflows works? I haven't really found documentation or tutorials and asked chatgpt. The http call is working, but how would be the next step in the code node?
Hey @ocean egret you can find some workflow docs at https://twenty.com/user-guide/section/integrations/workflows
Understand the workflow feature in Twenty including how to create and delete workflows, configure triggers, add actions, run workflows, and manage workflow history.
I saw this documentation, but I was't sure how it will be returned from the http node. how to access the data from the code node and return it back to the update object again. I am quite familiar with N8N and doing there a lot and in general I am clear with the concept
@ocean egret do you have a expected response body in HTTP Request node?