I've used DeactivateProcedure on scripts running within Sage, but not on external scripts. I'm working on a script that requires me to disable procedures in SO Entry. I've tried a few variations, but I'm getting "Object doesn't support this property or method." So I'm sure I don't have the right syntax. Any suggestions?
Set oSO = oScript.NewObject("SO_SalesOrder_bus", oSS)
'I've tried the below (and many other variations):
retVal = oSO.AsObject(oSO.ScriptObject).DeactivateProcedure("*ALL*") 'doesn't work
retVal = oSO.nDeactivateProcedure("*ALL*") 'doesn't work