@creece thanks for the reply. interesting thing, i tested a workflow action script that i have deployed and the getDeploymentId() works as expected. The script that is not working for me is a client script.
i’ll try re-deploying the script fresh to see if something buggy has occurred when the prerelease was created (clutching at straws i know).