Thanks @patrick. Could we not have a server action which works like the API Action letting us just select a PHP file and it then runs/includes it? For example, have a Condition action which, when something is true, run mycustomscript.php.
This would be way simpler and stays in the realms of non-coding (I know the script itself is hand coded but you know what I mean).
What does such a php file contain and how does it return data, should the action call a specific function in it or does it have to capture the response from that php file.
Where I’ve needed this is in creating a dynamic PDF. I’ve put a PHP script into the folder and put in my own hand-coded database connection and coded from there. I used an API Action to call it and sent an ID in the URL. I checked the $_SESSION variable for the logged in user ID so it couldn’t be run by anyone else but doing it via a direct path rather than a URL will make it more secure and way better.