Solved

sharepoint 2007 workflow change data in a field

Posted on 2014-10-14
2
221 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
When using a search centre, I'm going to show you how to configure Sharepoint's search to only return results from the current site collection. Very useful when using Office 365 with multiple site collections.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

724 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