"Switches hold items with the target. This move does not work if the target has Sticky Hold or Multitype, or is Giratina-O, or if either Pokémon is holding Mail. This move works even if the user has no item, but will fail if the user or target has had an item Knocked Off" - Smogon
Why won't it work on Giratina-O or a Pokemon with Multitype? Giratina-O is a Ghost type and Trick is Psychic type, so the NO EFFECT Rule does not apply here.