AnsweredAssumed Answered

Starting a workflow with workflow.asmx service

Question asked by murad_haider5 on Sep 24, 2014
Latest reply on Jun 17, 2015 by denniskennedy

I have a requirement where i have to run a workflow 'daily' at specific instance of time. I am consuming workflow.asmx webservice (using call a webservice action) to achieve my aim. with the following soap request:

 

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://nintex.com">

  <soap:Header>

  </soap:Header>

  <soap:Body>

    <m:AddWorkflowSchedule>

      <m:fileUrl></m:fileUrl>

      <m:workflowName>{Common:WorkflowTitle}</m:workflowName>

      <m:startDataXml></m:startDataXml>

      <m:schedule>

        <m:MaximumRepeats>0</m:MaximumRepeats>

        <m:WorkdaysOnly>false</m:WorkdaysOnly>

        <m:RepeatInterval>

          <m:Type>Daily</m:Type>

          <m:CountBetweenIntervals>1</m:CountBetweenIntervals>

        </m:RepeatInterval>

        <m:EndOn>NoLimit</m:EndOn>

        <m:StartTime>2014-09-23T14:00:00</m:StartTime>

        <m:EndTime>0001-01-01T00:00:00</m:EndTime>

      </m:schedule>

      <m:updateIfExists>true</m:updateIfExists>

    </m:AddWorkflowSchedule>

  </soap:Body>

</soap:Envelope>

 

upon running the action i receive the following response:

 

<soap:Fault xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---&gt; Cannot find workflow '00000000-0000-0000-0000-000000000000'.</faultstring><detail /></soap:Fault>

 

P.S: it is a list workflow.

 

Please guide if i am missing something.

Outcomes