I have two custom scripts. I would like to call one custom script (that does a smaller operation) from a larger custom script that does more processing. Would you please help me with the correct syntax?
I have tried:
And found this in my logs
Got error 'PHP message: REST Exception #501 > Database or driver does not support fetching all stored procedure names.\nPHP message: REST Exception #501 > Database or driver does not support fetching all stored function names.
I then tried
(guessing based on .js include documentation)
customScript = require(‘CustomScriptName’);
return platform.api.post(customScript, jsonPayload);
But that lead to this error in the logs:
The module “CustomScriptName” could not be found in any known locations.\nPHP message: REST Exception #500 > Module loader callback exception
I have confirmed the custom scripts are both visible on my Services tab and my user’s role has both Script and API access as well as POST access.