Workflow and ServiceDesk Community

 View Only
  • 1.  Creating a request from XML Data

    Posted Sep 11, 2013 10:03 AM

    Right now I have an auto start workflow that reads a tab delimited text file that is generated from an html web form. We are having issues when users are entering text and hitting hard returns. It is screwing up the text file. Is there other options? I am familiar with XML and Webservices but do not know where to start. Any help pointing me in the right direction would be appreciated.



  • 2.  RE: Creating a request from XML Data

    Posted Sep 11, 2013 10:15 AM

    How are you reading the text file? Are you using a Iterate Text File Lines component? Just curious at what components you are using.

    What are the hard return sequences looking like in debug? If they look like \r\n (the "hard return" sequence) you can always use a Replace String In Text component to replace \r\n with an empty string



  • 3.  RE: Creating a request from XML Data

    Posted Sep 11, 2013 11:44 AM

    I am using Iterate Text File Lines Component. In the debugger it is reading the first line then once it hits the hard return it stops reading. So after the first hard return nothing shows up in the values being passed. Here is the workflow. The embedded model component is filled with Get Items by index components. Mapping the output variables to the value. If that helps

     

    Capture.JPG



  • 4.  RE: Creating a request from XML Data

    Posted Sep 11, 2013 12:11 PM

    I would try and concentrate on seeing what the file contents look like in its entirety. My guess is that theres a problem combination of control characters that should be swapped out with empty text.

    You could try using a Read File comp followed by a ByteArray to text comp in order to see how the file contents appear.

    If it's XMl you're reading, you might want to try either the XML gneerator or the Read Object from XML comp  as well.



  • 5.  RE: Creating a request from XML Data

    Posted Sep 11, 2013 12:22 PM

    Thanks, I will concentrate on that. It is a text file that i am reading.