Solved

sharepoint 2007 workflow change data in a field

Posted on 2014-10-14
2
215 Views
Last Modified: 2014-10-20
i am new to sharepoint workflows so thank you for your patience. i am using sharepoint 2007

1) data in field from external source ( ie   1;#1234 , 2;#5678 )
2) i want to take the data in the field and remove the first three characters and keep the remaining and then copy the data to a second field. so if the data in the field was "1;#1234" it would remove the first three characters no matter what they were "1;#" and place "1234" to the next field. if the data was "2;#5678" it would remove the first three characters no matter what they were "2;#5" and place "5678" in the next field.
dont worry about the " that is what i did to say what the data is.

thank you for your help
0
Comment
Question by:metatonka
2 Comments
 
LVL 15

Assisted Solution

by:colly92002
colly92002 earned 250 total points
ID: 40381791
Ideally you would use a string function (left, right, trim etc) to do this.  Unfortunately MOSS workflows do not offer these OOTB.

Fortunately somebody has created a codeplex project specifically to add this functionality:
http://blog.summitcloud.com/2009/12/string-building-expressions-in-sharepoint-workflows-with-sq/
Discussion:
https://social.msdn.microsoft.com/Forums/en-US/3f4f7ff2-0596-40c5-adff-2ae326dd2d98/string-functions-in-workflow-stringbuilder?forum=sharepointcustomizationlegacy


Alternatively you could use a calculated column on your list to to do this with this formula (off the top of my head):

=RIGHT(FieldName, 3)
0
 
LVL 9

Accepted Solution

by:
macarrillo1 earned 250 total points
ID: 40385140
I agree with colly92002.
Although, I personally would use the calculated column.
So if you have a column named Field1 (that contains 1;#1234)
then create a calculated column (Field2) with the formula (mentioned above):

=RIGHT(Field2, 3)

Then use the calculated column (Field2) in the workflow.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert a Master Page to HTML 16 162
User Profile Issue in SHarePoint 9 65
Sharepoint 2013 won't open, even in safe mode 26 112
Sharepoint document already opened 2 41
Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question