I don't understand memories

I don't know if memory effect will activate if for example it wants in team endeavor and I put him in that secondary team will it work or he needs to be active in battle for it to work?