Text to collection translation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-08-18 08:35 PM
Hello
I have a text string that is returned from the application that looks like this. What is the best way to manipulate the text string to break it apart and store individual pieces in a collection that has First name, last name and account id. I use the clipboard to get this data back from the surface automation training. I think there is a space in the string between first and last name and a tab between last name and the account id. Help appreciated with best practices to do this using existing functionality.
Gregory Williams 67036802652212
Thanks in advance
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-08-18 06:54 AM
you can use trim function for remove space.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-08-18 11:53 PM
You can pick a calculation stage and then use the text functions left, mid and right.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-08-18 02:17 PM
You can replace space with comma (,) and then use Utility-String objects action CSV to Collection.
I hope it will help you.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-08-18 05:45 PM
You can use ""Split Text"" action of Utility-Strings with the split character as "" "" (meaning space) and then you can do""Remove Empty Rows"" action of Utility-Collection Manipulation.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-09-18 02:17 AM
Thanks for all the help. The string is little more complicated than just two pieces of data. Some fields are separated by a space and others tabs. Also the space between the date and time and AM/PM is legit so the last field needs to stay intact. Help is appreciated.
*R* SMITH Active Person 12/18/2006 12:09:00 PM
ELLI B SMITH Active Person 12/18/2006 12:09:00 PM
Thanks all
