Workflow Soluiton

 View Only
  • 1.  HTTP Get - perhaps the solution?

    Posted Sep 20, 2011 01:57 PM

    Hallo Guys and gals

    I am very new to the world of workflow.
    I am currently in the process of creating a workflow which in the end should be able to import a large number of computers on the fly into the CMDB, and getting names created on the fly.
    In this process i need to be able to get part of strings in a workflow, bare with me here a moment while i try to explain.

    i want to be able to parse variables into my workflow, like this:
    http://Workflowserver/Testworkflow?Name="SomethingIwrite"&Mac="MACADDRESS"

    and then be able to start my workflow like this, splitting my variables up for later use.... is this something i can do?

    Kind Regards
    Morten Leth



  • 2.  RE: HTTP Get - perhaps the solution?
    Best Answer

    Posted Sep 20, 2011 02:48 PM

    You can do this in a workflow by using Input Variables on the Priamry Model. Just define the input variable Name as Text, then when you start the workflow (either form start or webservice) pass the Name parameter in standard URL format - like in your example. If it's a simple value with no spaces, you do not need the double quotes.

     

    Rob



  • 3.  RE: HTTP Get - perhaps the solution?

    Posted Sep 21, 2011 03:47 AM

    Hey Rob

    Nice, that works like a charm... ;) just what i needed...
    I was wondering, perhaps you could help me with problem nr. 2 also.

    Now i need to send a file to the client, similar to a download method... - how to do?

    Kind Regards
    Morten Leth



  • 4.  RE: HTTP Get - perhaps the solution?

    Posted Sep 21, 2011 09:13 AM

    There is a read file component that lets you read a file into the stream and then attatch it to an email. The issue will be making sure your process has rights to the file path. In the debugger, it runs under your user context, but once published, it runs with Network Service.

    To overcome this in a Forms Start workflow, you need to create a new application pool and have a named user as the application pool identity. Make sure that user has right to the file path.

     

    Rob