javascript Google scripts create a document within a folder -


i have tried countless techniques, not able

docslist.createfile('example file', 'example file contents'); 

to create google document file. creates plain text file. have tried adding mime type. not work- think may bug in google. whatever file seems open in "viewer"

however there workaround, seems simple, sure there way using?

doc = documentapp.create('document name'); 

i cant folder.

thanks help.

yes possible. either try using driveapp (not docslist) create directly in folder. if wont work, create doc, add folder , remove root.


Comments

Popular posts from this blog

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -