The way that you implemented this would work directly when using a microflow from a button, it seems to be correct.
It might be the case that it is caused by the combination with the deeplink. Have you tested if this setup works when calling the microflow from a button directly?