cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

Capture Site Name by formatting the site URL

Jump to solution

Hello,

I am looking to format site URL to get the site name at the end of the string in a workflow

Ex: http://webapp/sites/Site1/Site2 - I want to format the string and update the "site name" column to "Site2".

Does anyone have any suggestions? Thanks!

0 Kudos
Reply
7 Replies
thomas_xu
Nintex Newbie

Re: Capture Site Name by formatting the site URL

Jump to solution

Hi Akhil.

Regular Expression should do the trick for you.

Capture1.PNG

Capture2.PNG

Reply
Automation Master
Automation Master

Re: Capture Site Name by formatting the site URL

Jump to solution

if the site name you want to get is always at the end of URL you can get it following simple regex

View solution in original post

Reply
Not applicable

Re: Capture Site Name by formatting the site URL

Jump to solution

Thanks Marian!

The pattern worked for my case. However in scenarios where there is space in the site name, only the last name is getting updated.

Ex: http://webapp/sites/site abc - only "abc" is being extracted instead of "site abc". Can the pattern be modified for this by any chance?

Thanks!

Reply
Automation Master
Automation Master

Re: Capture Site Name by formatting the site URL

Jump to solution

sure, it can.

if you really get a space in URL then eg. following pattern should work.

but I would say you will rather get your URL formatted like http://webapp/sites/site%20abc

in such case you might use

Reply
Not applicable

Re: Capture Site Name by formatting the site URL

Jump to solution

Awesome! It worked. Thank you thank you thank you thank you Marian!

Reply
Automation Master
Automation Master

Re: Capture Site Name by formatting the site URL

Jump to solution

save some 'thank you' yourself for future as well

Reply
Not applicable

Re: Capture Site Name by formatting the site URL

Jump to solution

It's a thankfest on Connect. :-)

Thanks for selecting a "correct answer," Akhil M​!

All the best,

Frank

Your community manager

0 Kudos
Reply