Update WS function to manage custom field