Workflow Soluiton

 View Only
  • 1.  ReadRegistryValue Component

    Posted Jun 08, 2010 03:07 PM

    Using Workflow 7 and trying to make a WebForm. Has anyone have any success in using the ReadRegistryValue Component.  I think I have it configured properly.  I have add on to the default registry key value hkey_local_machine\software\myvalue\myvalue.  I have configured the registry value name' with a known name of a value under my second 'myvalue'.  When I run in debug and look in the execution log I find the value that I am expecting.  My issue is exposing the value on my Form....getting "not found".   When I open up my FormBuilder and on the lower left hand side under variables I see RegistryValue - not expanded.  When I expand I was expecting to see the name of value that I have entered for 'registry value name'.  What I am seeing is ValueKind -not expanded....under that binary -not expand, dword -not expand...etc.  When I expand these it is repetitious to 2 layers

    Any help in exposing my reg value to the form would be appreciated

    thanks



  • 2.  RE: ReadRegistryValue Component

    Posted Jun 15, 2010 10:59 AM
    ...but are you trying to read a registry value on the WF server, or on the client accessing the web form?  I don't believe you will be able to read the registry on the client machine from a web page; that would be a huge security flaw that the browser would block (or not even provide a mechanism for).  It would probably require some sort of ActiveX plugin (assuming IE) or an extension for Firefox.

    If it is on the WF server, then you may need to grant READ rights to the referenced key to the "Network Service" account (or whatever ID your WorkFlow is running as) to get this to work.

    Full disclosure...I'm a WF newbie, so I could be wrong here, and I apologize if so.


  • 3.  RE: ReadRegistryValue Component

    Posted Jun 16, 2010 01:41 PM
    Thanks for the reply

    I think you are right ReadRegistryValue Component is similarly to GetComputer.....it only works on the WF Server....though there is a nice work around for get computer name........

    http://www.symantec.com/connect/articles/how-get-computername-and-guid

    I tried this and it works great....trouble is, it is a form based trigger and I need to then use the computer name in a custom component to return the contact ID to populate another field in the same form....but I digress

    Wish there was a solution to get reg values...there's some stuff there that I sure can use

    Well, thanks again for the  reply



  • 4.  RE: ReadRegistryValue Component

    Posted Jun 16, 2010 05:30 PM
    The problem displaying the value is that the output of the "ReadRegistryValue" is not a string type it is "RegistryValueType" you can display the value using an "ASCIIMergeLabelComponent" on the form.  You can also take the output of the "ReadRegistryValue" component and use the "Convert to Text" component to use your current method of displaying the values on the form.

    Hope that works out for you.

    -Cheers