AnsweredAssumed Answered

ArcPy Get Coded Domain Values from Portal/AGOL

Question asked by jherberich on Dec 6, 2018
Latest reply on Dec 21, 2018 by jherberich

I am retrieving data from Feature Service Feature Class and Feature Service Table sources hosted on Portal (10.6) via a Python toolbox tool in ArcGIS Pro (currently 2.2.1).  Some fields have coded domains, and naturally I want to return the domain values instead of the codes.  I thought I could use arcpy.da.ListDomains or arcpy.DomainToTable_management to enable the lookups, except I can't find what to use as the "in_workspace" parameter for these (the service URL does not work).  Currently fetching data with arcpy.da.TableToNumPyArray but could go to arcpy.da.SearchCursor although that returns codes, too.  Am I out-of-luck?