I have a working python script that I want to turn into a tool. I am having trouble setting a databse as output workspace as there does not seem to be a fitting parameter Data Type. I tried using Database Connection, but I am unable to select a database with this, it will only open the DB. Should there not be a output to geodatabase?
Also, I am not sure that line 9 is the correct syntax for the toolscript, but in the original it does seem to work.
import arcpy
arcpy.env.overwriteOutput = True
fieldList = arcpy.GetParameterAsText(0)
for field in fieldList:
outGDB = arcpy.GetParameterAsText(1)
outName = arcpy.GetParameterAsText(2, {}).format(field)
conFC = arcpy.GetParameterAsText(3)
numField = field
arcpy.CreateRandomPoints_management(outGDB, outName, conFC, "", numField)
This is how line 9 looks in the original script: outName = "NAME_{}".format(field)