I thought I had posted this but cannot find it.
The GP Tool widget in a web app completely ignores this Use Selected checkbox.
Other selection tools like the polygon right there to the right work with my code fine. But maybe it is somehow different? Seems like this would have been caught by now. I did try wrapping in a MakeFeatureLayer.
indLayer = arcpy.GetParameterAsText(0)
terrapkList = [row[0] for row in arcpy.da.SearchCursor(indLayer, ["PrimaryKey"], "ProjectName <> 'LMF'")]
Thanks a lot