You are viewing limited content. For full access, please sign in.

Question

Question

Truncating part of a folder path used in workflow

asked on May 20, 2015 Show version history

Hi all,

I have retrieved a full path from a folder structure by using a token. The path is as follows: MyRepository\Training\Admin\HR\..

But I want to truncate the first part of the folder path which is being used in my workflow design. It should return the following path : Admin\HR\...

Can somebody please advise?

Thanks

Kind Regards,

Sheila

 

 

0 0

Answer

SELECTED ANSWER
replied on May 21, 2015

Use the pattern matching activity in Workflow and Ben's pattern to capture what you want:

1 0

Replies

replied on May 21, 2015

Hi Sheila,

 

There are many different ways.  Here's one :

[^\\]+\\[^\\]+\\(.+)

1 0
SELECTED ANSWER
replied on May 21, 2015

Use the pattern matching activity in Workflow and Ben's pattern to capture what you want:

1 0
replied on May 22, 2015

Hi,

Thanks a lot.. I was able to do it.

 

Kind Regards,

Sheila

0 0
replied on November 15, 2016

Is this type of option available in Forms? For example, we're pulling data from an SQL table to populate a table in Forms. For a field labeled UserName, the data lists the domain name prior to the actual username. Example: DOMAIN_1\name. I want to be able to automatically remove the portion containing "DOMAIN_1\", leaving only the "name" portion in the cell.

 

Thanks,

Michael

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.