views:

500

answers:

2

SharePoint Designer does not support the replace function directly.

What would be a function or call Template for this? I want to replace "-Y" with "Yes" and "-N" with "NO" in a string. E.g.:

Sample-Y, Sample1-N

Result as:

Sample Yes Sample1 No

A: 

Not exactly sure what you are trying to do and what part of SharePoint Designer you are using, but if you are talking about workflows then checkout the Workflow Power Pack, which allows you to embed any C# or VB code inside your workflow. This makes the usual string manipulation functionality very easy.

An example of string manipulation functionality can be found here.

Disclaimer, I worked on this product and it is fab ;-)

Muhimbi