1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Retrieving ServicesPaths / WorkflowBaseUrl

Retrieving ServicesPaths / WorkflowBaseUrl

3 posts, 1 answered
  1. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    18 Jan 2012
    Link to this post
    Hi,

    Quick question: can I retrieve the ServicesPaths / WorkflowBaseUrl value from the Sitefinity API?
    Or do I have to try to manually read it from the config file or something?

    Thanks for any help.
  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    20 Jan 2012
    Link to this post
    Hello Thomas,

     You can do that, using our ConfigManager. Here's a sample code that gets the WorkflowBaseUrl:

    ConfigManager mng = ConfigManager.GetManager();
                var section = mng.GetSection<SystemConfig>();
                var url = section.ServicesPaths.WorkflowBaseUrl;

    Greetings,
    Svetoslav Petsov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  3. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    20 Jan 2012
    Link to this post
    Hi Svetoslav,

    Just what I needed, thanks.
3 posts, 1 answered