Skip to main content
Nintex Community Menu Bar

Substring Inline Function

  • March 4, 2016
  • 2 replies
  • 14 views

kelliganp
Forum|alt.badge.img+10

Hi Folks,

I want to use a workflow inline function to get a substring from a URL. The URL will be generated by {Common:WebUrl}

I want to go from, for example, "https://platform.domain.com/sites/SiteCollection/site" to "SiteCollection/site"

My difficulty is that I do not know where the site collection part of the string will occur or how many sub-site levels there will be. Is there an easy way to do this that is escaping me?

Thanks in advance!

Patrick Kelligan

2 replies

Forum|alt.badge.img+8

Patrick -

How about this with a Set Variable action:

fn-Replace(Web URL,"https://platform.domain.com/sites/","")

If {Common:WenUrl} = "https://platform.domain.com/sites/SiteCollection/site" then this function will return "SiteCollection/site".


kelliganp
Forum|alt.badge.img+10
  • Author
  • Rookie
  • March 7, 2016

That did the trick Tom Castiglia! Thanks.