AnsweredAssumed Answered

If statement for particular column (ArcGIS Online)

Question asked by d_visca on Mar 22, 2017
Latest reply on Mar 22, 2017 by rastrauch
Hello, I am currently working on a script that gets data from a hosted 
ArcGIS Online feature class.  The plan is to go from top to bottom in a particular
column, and for every value X to execute a print command.  I've already managed
this with local files:

fc = r'C:/...'
fields = ['F_03']
with arcpy.da.UpdateCursor(fc, fields) as cursor:
    for row in cursor:
      if row[0] == "X":


Which will only work with ArcMap and not as standalone script I think.
Also I've already established the "connection" to my hosted feature class with
requests.get(URL). But I can't figure out, how to put those two snippets
together so it will actually work.