Downloading Data Models

Example—Download from the repository a data model, standard query, or standard query with report

//download a data model, standard query or standard query with reports //from a local repository
//(document name to gain the download), (type of document), (repository //owner) (group with access), (name of document)
ExecuteBScript("download doc root, 'SQR', 'ts', 'PUBLIC', 'Sales")