[client][AddActionDialog] Extract common code for select Id for update