AnsweredAssumed Answered

SOAP request for passing a variable to a workflow

Question asked by christian.debiasi on Jun 3, 2016
Latest reply on Apr 3, 2018 by erkka.peltoniemi@meteoriitti.com

Hey there,

 

I'm a little stuck with a current problem. I'm trying to pass a variable to a workflow. I have to admit I'm still kind of new to the whole ajax-stuff, so maybe I'm just making a really stupid mistake here but after hours of trying and googeling I'm still without a solution

Basically I have a variable in my Workflow called [newSubscriber]. I want the variable to be passed by my script. it would be great if that was possible. My request looks like this

 

var soap ='<?xml version=\"1.0\" encoding=\"utf-8\"?>' +
     '<soap:Envelope ...>+
      '<soap:Body>' +
          '<StartWorkflowOnListItem xmlns=\"http://nintex.com\">' +
            '<itemId>' + itemId + '</itemId>' +
            '<listName>' + listName + '</listName>' +
            '<workflowName>' + wfName + '</workflowName>' +
            '<associationData>'+
              '<newSubscriber>' + currentUserLogin + '</newSubscriber>' +
            '</associationData>' +
          '</StartWorkflowOnListItem>' +
       '</soap:Body>' +
       '</soap:Envelope>';

 

I tried it with <associationData> just <Data> inside or outside the StartWorkflowOnListItem-Tag, but it didn't work so far. It would be great if someone could tell me if what I want to do is possible and if yes what I'm doing wrong. Thanks in advance and

 

Greetings Chris

Outcomes