Thanks for the reply. I have tried the xtk:workflow Spawn method,
however whilst this creates a new workflow from a template, it also
starts the workflow. I could set the workflow template up to have a
disabled start activity, and this does work, however it also creates
workflow logs which seems to be a bit of a hack.Ideally, I want to
replicate the functionality of the console, where a new workflow can be
automatically associated to a campaign: