Paul Galvin's (old) SharePoint space [SharePoint

Just another WordPress.com site

New release: SharePoint Designer Workflow Extensions (string manipulation functions)

UPDATE: See here for my thoughts on commercializing this project: http://paulgalvin.spaces.live.com/blog/cns!1CC1EDB3DAA9B8AA!569.entry

I’ve been busy working on my Codeplex project which is presently focused on providing string manipulation extensions to workflows created via SharePoint Designer.

See here for details:

Project home: http://www.codeplex.com/spdwfextensions

Release: https://www.codeplex.com/Release/ProjectReleases.aspx?ProjectName=spdwfextensions&ReleaseId=8280

Version 1.0 includes the following new features:

Function

Description (if not same as .Net function)

Num-entries()

Returns the number "entries" in a string as per a specified delimiter. 

For example: Num-entries in a string "a,b,c" with delimiter "," = 3.

Entry()

Returns the nth token in a string as per a specified delimiter. 

Length

String.Length

Replace()

String.Replace()

Contains()

String.Contains()
Returns the word "true" or the word "false".

Substring(start)

String.Substring(start)

Substring(start,length)

String.Substring(start,length)

ToUpper()

String.ToUpper()

ToLower()

String.ToLower()

StartsWith()

String.StartsWith()
Returns the word "true" or the word "false".

EndsWith()

String.EndsWith()
Returns the word "true" or the word "false".

I’ve put together a series of screen shots that show the functions and what they look like when used in SharePoint Designer (both the design and the runtime result).  The screen shots show the individual functions as invoked from SharePoint Designer and then the history of a workflow that shows them after-the-fact.

Overall test:

Replace():

ToUpper():

Contains():

StartsWith():

EndsWith():

Length():

Substring(start,length)

Substring(start)

Entry:

  

 

 

Advertisements

3 responses to “New release: SharePoint Designer Workflow Extensions (string manipulation functions)

  1. Gerry August 22, 2008 at 7:31 pm

    Install went as expected but when I select the new action "Invoke a Function" nothing appears in the designer.  Any idea what I have done wrong?

  2. Ashish August 25, 2008 at 3:09 pm

    Hello Paul
     
    I also facing same problem as Gerry facing. I am getting action Invoke a C# Helper functioon, once I clicks this notthing appear in the designer.
     
    I am doiing everything on directly server as per your installation instruction, but no luck
     
    ANy idea, whats wrong I am doing here?
     
    Ashi

  3. Gerry August 27, 2008 at 1:05 am

    I solved the problem and posted it on another blog.  I think the key is to put the actions into the WSS.Actions file.  After doing this I was able to see the helper functions.  All of the examples he has listed above work.  The problem is that I can\’t figure out how to use WorkFlow variables with the helper functions.  I tried to substring one of my date values and then display the chopped date value in an email.  This does not work at all because the program treates the variable as a string i.e. "[%_x005f_string47%]".  I doubt that these helper functions work with WorkFlow variables at all.  I ask how is this useful if I can\’t use WorkFlow variables?
     
    Perhaps I am missing something?
     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: