added getActivityByExternalID