Hello 🙂

Hello 🙂 I'm creating a workflow to ingest some contact forms and I've got a question. If I have a company I will go on route A, if I don't I will go on route B, then I will create an opportunity and a note for each opportunity if I have a message. Is there an optimal way of doing this or I need to do both paths? Since I want to use the ID of the person created with or without a company I can't pass that into the same path like this because I can only use 1 ID not both?
No description
No description
9 Replies
Pedro Talaia
Pedro TalaiaOP2mo ago
Btw, I can't also pass a var for a country code right?
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
I'd say right now your solution is optimal until if/else nodes are implemented in Q4 https://github.com/twentyhq/core-team-issues/issues/1265
GitHub
🔀 If/Else Node · Issue #1265 · twentyhq/core-team-issues
Description: If/else node makes sure that workflow always continues with the path changing depending on the condition. Default behavior: If/else nodes split into two paths → If (true) or Else (fals...
Pedro Talaia
Pedro TalaiaOP2mo ago
Thanks @bob 🙂 Someone could have another solution but it seems good then
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
And you have to use both routes, I've reproduced and simplified your workflow and there's no way to pass the ID from both code nodes as one filter blocks the way
No description
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
And passing country code from Create Person node?
Pedro Talaia
Pedro TalaiaOP2mo ago
The thing is I can have several different country codes, I created a function to extract the country code. So if I had a + I would separate and pass that into the coutnry code and then the number. Thank you for having a look bob!
ɃØĦɆᵾS
ɃØĦɆᵾS2mo ago
From what I can see, apparently you can't pass country code 🤔 @Baptiste Devessier do you maybe have more information why it's not possible to pass variable for country's code in phone field in workflow?
Baptiste Devessier
Thanks for mentioning me, @bob. cc @thomast
thomast
thomast2mo ago
Hello @Pedro Talaia, thank you for your message. This was indeed not available because of a migration from country to calling code at that time. Created a ticket and making sure that this can now be implemented. For follow-up: https://github.com/twentyhq/twenty/issues/14938
GitHub
[Workflows] Variable should be available for calling code · Issue ...
Calling code picker does not accept variables in workflow. Technical Input The dropdown to select the country actually returns a country code. Then this country code is translated to a calling code...

Did you find this page helpful?