@relaxue I recommend that you create a flow with such a structure in the UI then delete /edit
and append .json
to the end of the URL.
A JSON should display for your flow showing you the data for the Create Flow API call.
@whereisjad I’ve done that, but it seems that linking from two actions to the same action isn’t setup on the klaviyo server. e.g.
{
"temporary_id": "1",
"type": "trigger-split",
"data": {
...
},
"links": {
"next_if_true": "2",
"next_if_false": "3"
}
},
{
"temporary_id": "2",
"type": "send-webhook",
"data": {
...
},
"links": {
"next": "3"
}
},
{
"temporary_id": "3",
"type": "trigger-split",
"data": {
...
},
"links": {
"next_if_true": null,
"next_if_false": null
}
}
When calling flow create, the `next_if_false` in the first action is just set to `null` instead of `3`.
Hi @relaxue,
Just spoke with our team and confirmed that unfortunately, we can’t rejoin splits in the Create Flow API as of now. I’m going to go ahead and log this as a feature request with the product team. Definitely see how this would be really useful to have.