Skip to main content

I want to build out a rejoin to combine the Yes and No branches of a trigger split back into one back, like this: https://help.klaviyo.com/hc/en-us/articles/360002419512

Is there a way to do this with the API? If so, how? If not, is there an estimate as to when it might be supported?

Thanks

@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.