Let $k$ be a field, $X$ and $Y$ two connected $k$-varieties, and $f:X\rightarrow Y$ a dominant projective morphism of relative dimension $d$.
I would like to know under which condition there is a natural "trace" morphism $$R^df_*\Omega_{X/Y}^d\rightarrow \mathcal O_Y,$$ which is not necessarily an isomorphism, but that it is an isomorphism on the smooth fibers (if they exist).
I think that if $f$ is l.c.i. morphism (which I might be okay to assume), then there is a dualizing sheaf $\omega_{X/Y}$ and a trace isomorphism $$R^df_*\omega_{X/Y}\rightarrow \mathcal O_Y.$$
In this situation, what is the relation between $\omega_{X/Y}$ and $\Omega_{X/Y}^d$? Is there a morphism between them?
Thank you in advance!