Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Dataset column to delimited list
Topic Summary:
Created On: 07/25/2018 12:45 PM
Status: Read Only
Linear : Threading : Single : Branch
 Dataset column to delimited list   - DaveWest - 07/25/2018 12:45 PM  
 Dataset column to delimited list   - Justin Aucoin - 08/01/2018 11:46 AM  
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 07/25/2018 12:45 PM
User is offline View Users Profile Print this message

Author Icon
DaveWest
Student (5-19 posts)

Posts: 14
Joined: 12/22/2017

Is there a function to create a delimited list from a specific column of a dataset?

example dataset:

column_FirstName column_LastName
Bob Smith
Jim Young
Dan Berry


dataset.FirstName list = Bob,Jim,Dan

dataset.LastName list = Smith,Young,Berry

Thanks.
 08/01/2018 11:46 AM
User is offline View Users Profile Print this message

Author Icon
Justin Aucoin
HelpSystems

Posts: 360
Joined: 02/15/2016

Hi Dave,

Automate does not have a function that will do what you are looking for. You would need to loop the dataset and populate a variable with the desired information and deliminator. Attached is code for a sample Automate 11 task showing how this can be accomplished. To utilize, create a csv file on your desktop with the filename names.csv. Use FirstName and LastName for the column headers, then populate any first and last names you wish. The task will then loop and populate two variables, varFirstName, and varLastName with the respective names separated by a comma. After the loop is completed a dialog box will display the results.


Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


-------------------------

Justin Aucoin | Support Analyst
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1370 guests browsing this forum, which makes a total of 1370 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2019 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog