special user credentials for workflow RRS feed

  • Question

  • Hey,

    I have a workflow witch calls a SharePoint list web service.

    Before I can call the list web service I have to set the credentials with this line of code

    listService.Credentials = new System.Net.NetworkCredential("User",

    "password", "domain");


    But how can I call the list web service with the credentials from the owner of the workflow. I don’t want to hard copy these credentials in the code.



    When I make an input field for the user (User, password and Domain) in the workflow everybody who has rights to see the workflow properties can see the password. That is not secure.



    Thanks for your help

    Viele Grüße Stefan
    Friday, August 6, 2010 1:20 PM


All replies

  • Did you try to use DefaultCredentials ???



    Mahain : http://mahenderpal.wordpress.com
    • Marked as answer by Stefan3110 Friday, August 6, 2010 1:38 PM
    Friday, August 6, 2010 1:30 PM
  • Hi, Stefan.


    There are several ways to store this fields:

    1. Create special entity in CRM and call it Credentials and don't give anybody except admin rights to read it and read it inside your WF.

    2. Store it in register on a server and read this data inside your WF.

    3. Create some config file to store this data there and read this data inside your WF.

    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    Friday, August 6, 2010 1:31 PM
  • Thanks DefaultCredentials helps.

    Viele Grüße Stefan
    Friday, August 6, 2010 1:39 PM