I have a Power Automate which is meant to be triggered by clicking a button in my app. I keep getting an error however which is stopping it from working as it appears to not be able to pick up the 'ThisItem.ID'

The weirdest bit is that I have a previous version on which it was working fine. I can't use this previous version as the live as there have been other fixes made elsewhere in the app which will be a huge pain to have to do again, so I'm just trying to add this icon to the live version now when I get this error.
Screenshot below of the working one on a previous unpublished version of the app so you can see that there is no difference between the two, except that I renamed the automate flow between the two.

Appreciate any help you might be able to give!