David,
First I would strongly recommend to watch this short video on Building your first script based custom datasource using a file. Its very informative. https://communities.netapp.com/videos/3351
@how I turn this .csv-generating perl script into a working data source. Where do i put the script? Do I just put "C:\path\to\perl.exe C:\path\to\myscript" in the script box of the Data Source Type? I've tried this and it doesn't work.
------
The csv-generating perl script can be placed anywhere on the WFA server. Lets assume you are having it at C:\fakepath\test.pl
So to execute this perl script from WFA Datasource write the following line in the script block.
Start-Process Perl C:\fakepath\test.pl -NoNewWindow
If somehow Perl in not in your PATH variable, you can give the full path to perl.exe as well.
@Where does it need to create the .csv files?
------
The csv-files can be created anywhere in your WFA server, but they finally need to be at Data source's pwd which is <install_location>\WFA\jboss\standalone\tmp\wfa. So let your csv-generating perl script create CSV files anywhere you want, lets say C:\my_csv and then Copy all the CSV created to the right place using the following command at the last.
Copy-Item C:\my_csv\* ./ -Force
This is also suggested in the video.
So the script block of the Datasource should have the below code.
=====
#Execute the perl script at C:\fakepath\test.pl to generate CSV files at folder C:\my_csv folder
Start-Process Perl C:\fakepath\test.pl -NoNewWindow
#Now copy all the CSV files into the PWD.
Copy-Item C:\my_csv\* ./ -Force
===========
sinhaa
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.