They're related. First, you need to know that the type II error is a statistical term referring to the acceptance (non-rejection) of a false null hypothesis. In general, we will have that
Z_beta=[(Margin of error)-alternative difference]/SE(difference),
where Margin of error=critical value*SE(difference)=Z_{alpha/2}*SE(difference) and Z_beta=-Z_power
Then we have
-Z_power=Z_{alpha/2}-alternative difference/SE(difference),
Thus,
alternative difference/SE=Z_power+Z_{alpha/2}.
SE(difference) here can vary depending on what you are trying to test. For example, if you're testing two group mean difference, then SE=sigma/sqrt(n), where sigma=SD and n=sample size. You can also see that actually the effect size here=difference/sigma.