title: google.script.run XX is not a function error
body: <p>Hi I am developing a little app to move files around google drive using google Appmaker.</p>
  
  <p>I have the code working to select the file and the destination directory all fine. The problem is to call the server function to run DriveApp functions as follows:</p>
  
  <pre><code>function onClickbtnMove(widget, event){
     var props = widget.root.properties;     
     fileids=props.FileIdList;
   //fileids is a list object of fileIDs, in the following text i removed the loop and just try with one fileID
     var i=0;
  
     google.script.run
      .withSuccessHandler (function (result) {
        console.log (result);
        })
      .withFailureHandler (function (error) {
       console.log (error);
        })
      .moveFiles_(fileids[i], props.FolderDestinationId);
        } 
  </code></pre>
  
  <p>The server script is:</p>
  
  <pre><code>function moveFiles_(sourceFileId, targetFolderId) {
  
     var file = DriveApp.getFileById(sourceFileId);
    // file.getParents().next().removeFile(file); // removed until i get it working!!
    DriveApp.getFolderById(targetFolderId).addFile(file);
    return "1";
   }
  </code></pre>
  
  <p>i am sure there is something totally obvious but i am getting:</p>
  
  <pre><code> google.script.run.withSuccessHandler(...)
  .withFailureHandler(...).moveFiles_ is not a function`
  </code></pre>
  
  <p>any guidance very welcome. thanks in advance.</p>