API
Version 7.x > API > Marketing Workflow For Contact View modes: 
User avatar
Member
Member
david.mavin-sky - 1/29/2014 10:55:26 AM
   
Marketing Workflow For Contact
Hi,

Can anyone tell me how to move a workflow to a specific step via the API. I have the workflow ID I am interested in but want to move the workflow to a specific step and/or the final step.

var workflow = WorkflowInfoProvider.GetWorkflowInfo(workflowId);
if (workflow != null)
{
var workflowFinishStep = WorkflowStepInfoProvider.GetFinishedStep(workflowId);
// How do I move the workflow to the required step?
}

I think workflow will have the workflow instance, I am not too sure if workflowFinishStep gives me the last step? But i cannot find any documentation stating how to perform this move step action via the API?

Any help appreciated as I can find no documentation on this apart from creating workflows via the API?

Cheers
David


User avatar
Member
Member
kentico_sandroj - 1/31/2014 9:31:48 PM
   
RE:Marketing Workflow For Contact
Hi David,

I believe you were looking for the workflow examples under the wrong section, the API example can be found under the Document API section. The examples show how to move and publish documents through workflow. Also, according to the API Reference, the GetFinishedStep(Int) should give you the last step of the workflow.

Please let me know if you have additional questions.

Best Regards,
Sandro