PlayScript(ScriptFileName=String,OutputStyle=String,ScriptArgsn=String): Object - OR -
PlayReportScript(ScriptFileName=String,OutputStyle=String,ScriptArgsn=String): Object
Play Script and Play Report Script Web Services functions play a given script with a given output style and Script Argsn. PlayScript and PlayReportScript will only work for scripts with file extension .pfs, and scripts that exist on a relevant script path.
Use the ScriptDoc Endpoint to retrieve a list of available Reports.
All MaxBasic functions in scripts can be compiled. The ScriptDoc endpoint lists the functions available to the web service. Functions listed in the ScriptDoc output as Not supported by Web Service can be compiled, but will not be executed.
PlayScript and PlayReportScript functions syntax have these named arguments:
Parameter |
Description |
Script File Name |
Required. The script to play. |
Output Style |
Required. Select from List, String or JSON. |
Script Argsn |
Required. The script arguments. |
See Web Service Functions for sample code to access Web Services. Sample web service end point syntax is:
Response = MakeCall("PlayScript(ScriptFileName=AccredoScript.pfs,OutputStyle=List,ScriptArgsn=0)")
See also the MaxBasic PlayScript function.