Trouble with @ReplaceSubstring

I have a field named AD_File_Loc in a few hundred documents that I would like to replace part of the path name contained within that field. I am trying to run the script below as an agent on the selected documents in a view. Any suggestions would be appreciated.

@ReplaceSubstring(“\\tordesign.torolab.name.com\dm_projects\webserver”; “tordesign”: “torolab” : “name” ; “com” : “dm_projects” : “webserver”: “tlbgsa” : “tlbgsa” : “projects” : “t” : “torontodesign” : “infomanagement”);

@SelectAll

Subject: Question

For one the from list and to list need to be paired.

Can you show us what the before and after string should look like.

Subject: Response to ‘Question’

I went about it a different way and found this solution which does the trick :slight_smile:

newPath:= @Right(AD_File_Loc; “webserver”);

@SetField(“AD_File_Loc” ; “\\tlbgsa\tlbgsa\projects\t\torontodesign\infomanagement” + newPath)

Thank you for your time