Refresh data source from arcpy (Pro)

Idea created by kjetil4 on Jan 4, 2018
    Reviewed
    Score110

    When running a script tool which adds new features to an ArcSDE feature class using arcpy.da.InsertCursor, these features will not automatically appear on the map.

    Clicking Refresh below the map, panning and zooming do not reveal the new features.

    In order to refresh the data source, I have to list the contents by data source, click on the ArcSDE connection and in the Versioning tab click Refresh.

    There is a need to be able (using arcpy) to update the map with the new features.