に行ったとき

when (someone) went to

→ に
phrase Rare #33,032
when (someone) went to Used to describe something that happened when someone went to a place. The destination comes before に, and the subject is understood from context.
JA: 京都に行ったとき、たくさん写真を撮りました。
EN: When I went to Kyoto, I took lots of pictures.

マイクジェーンの家に行ったとき彼女は眠っていた

When Mike went to Jane’s house, she was asleep.

はじめてスペインに行ったとき私にとってすべてがわくわくさせるものでした

When I first went to Spain, everything was exciting to me.

東京に行ったとき彼に会った

I met him when I went to Tokyo.

海外に行ったときチップが必要なことを覚えていたほうがいいですよ

When you travel abroad, it's a good idea to remember that tipping may be expected.

パスポートは外国に行ったときなしではすまされないものだ

A passport is something you can't do without when traveling abroad.