AnsweredAssumed Answered

Field mappings data type parameter in Geoprocessing Tool

Question asked by c_jermoore@PA.LCL_PADeptAG Champion on Oct 28, 2019
Latest reply on Oct 28, 2019 by Dan_Patterson

I have a script that I'm trying to migrate over to an ArcGIS pro toolbox as a script tool. The script is using the fieldmappings python object however I would like to use the Field Mappings Datatype within the script tool's parameters to control the field mapping. ( I have substituted the fieldmappings python object for the one within the tool's parameters.)


The issue I'm having is that only the input tables show up within the field mapping section for the tool. None of the fields show up for the output table. Just to reiterate, It does not give me the option to choose which fields in table 1 match  fields in table 2. 


I have not been able to find any good documentation on how to correctly use the Field Mapping datatype. Does anyone have a working example of how to set this up correctly?