Get Root Site Collection URL

  • 27 July 2015
  • 3 replies
  • 18 views

Badge +2

Hi,

How can I get the URL from the Root Site Collection? Under the Common Tab I see only Web URL. This URL includes also the subsite.

best regards


3 replies

Badge +3

Hi Domenico

use a regular expression :

https:.*/sites/[^/]*

All between "https:" an "sites/" plus all non "/" characters

Regards

Userlevel 7
Badge +17

Domenico, Did this work for you?

Badge +2

If you also also own the Workflow product you can use a Workflow Constant which you can propagate to your various environments. ex. ProcessPortalUrl:https://bpm-t.customer.local/sites/bpmhome

The constant can then be used in your forms.

Reply